Commit Graph

182 Commits

Author SHA1 Message Date
Reed Allman
1cdb47d6e9 server, examples, extensions lint compliant (#1109)
these are all automated changes suggested by golint
2018-07-04 15:23:15 +01:00
Owen Cliffe
456cbed8bd Update CLI docs to reflect new CLI verb/noun structure (#1031)
Use new CLI syntax
2018-06-08 11:47:04 +01:00
Travis Reeder
999820d15b Moves main into cmd dir. (#977) 2018-05-09 10:52:52 +03:00
Nigel Deakin
05ec91e310 Update README.md (#766)
This PR changes the instructions for running Prometheus and Grafana in Docker to use the `--add-host` parameter instead of the `--link` parameter which is deprecated and which has been reported by @shaunsmith to sometimes not work. 

The supplied command has been verified by @shaunsmith on Mac and Linux and by me on Linux.
2018-02-13 11:27:55 -08:00
Nigel Deakin
afe9ba2c36 Update README.md (#730) 2018-02-06 00:08:36 +08:00
Tolga Ceylan
ee59361bda fn: added server too busy stats (#717) 2018-01-23 19:30:01 -08:00
Travis Reeder
5a2602d42e Updated docs, cleaned things up, DRY's up function format stuff. (#688)
* Updated docs, cleaned things up, DRY's up function format stuff.

* deleted files

* updated bad link
2018-01-16 14:45:44 -08:00
Nigel Deakin
ac2bfd3462 Change basic stats to use opentracing rather than Prometheus API (#671)
* Change basic stats to use opentracing rather than Prometheus API directly

* Just ran gofmt

* Extract opentracing access for metrics to common/metrics.go

* Replace quotes strings with constants where possible
2018-01-11 17:34:51 +00:00
W Brian Leonard
425bcc0954 Adding tutorial prerequisites and correcting routes (#423)
* Adding tutorial prerequisites and correcting routes

* Correcting Quickstart link in README.md

* Minor edit to trigger pull request
2018-01-02 10:49:50 -06:00
Travis Reeder
fdb4188146 Adds before/after app get/list. And some bug fixes/cleanup. (#610)
* Adds before/after app get/list. And some bug fixes/cleanup.

* Fix test
2017-12-21 09:32:03 -08:00
Nigel Deakin
3bfe57825e Update README.md (#586) 2017-12-12 17:43:48 +00:00
Matthew Gilliard
77ca7f450f Adds Spring Cloud Function example (#566) 2017-12-05 16:02:32 -08:00
Travis Reeder
0798f9fac8 Middleware upgrade (#554)
* Adds root level middleware

* Added todo

* Better way for extensions to be added.

* Bad conflict merge?
2017-12-05 08:22:03 -08:00
Michael J Williams
1aa1618404 Update to docs, examples, and tutorial links (#546)
* Update to docs, examples, and tutorial links

* Added categories to docs index page. Removed icons.

* Update to docs, examples, and tutorial links.
Added categories to docs index page. Removed icons.

* updates to docs upon review
2017-12-01 09:53:51 -08:00
Nigel Deakin
9a75785cbf Per route api extensions (#542)
* Extend extension mechanism to support per-route API extensions

* Tidy up comment

* Remove print statement

* Minor improvement to README

* Avoid calling c.Request.Context() twice
2017-11-29 12:03:23 +00:00
Nigel Deakin
954f69e74a Add appname to basic metrics (#547)
* Add app labels to queued/running/completed/failed metrics

* Add app labels to queued/running/completed/failed metrics

* Add app labels to queued/running/completed/failed metrics
2017-11-28 10:17:24 -06:00
Nigel Deakin
7f03c22df0 Fix for Prometheus/Grafana quickstart guide (#523)
* Fix for #520

* Addressing review comments

* Addressing review comments
2017-11-22 15:26:41 +00:00
Nigel Deakin
910612d0b1 Docker stats to Prometheus (#486)
* Docker stats to Prometheus

* Fix compilation error in docker_test

* Refactor docker driver Run function to wait for  the container to have stopped before stopping the colleciton of statistics

* Fix go fmt errors

* Updates to sending docker stats to Prometheus

* remove new test TestWritResultImpl because we changes to support multiple waiters have been removed

* Update docker.Run to use channels not contextrs to shut down stats collector
2017-11-16 11:02:33 -08:00
Travis Reeder
64c6118313 Removed a bunch of old examples. (#502)
* Removed a bunch of old examples.

* moved grafana back.

* Bumping, circle didn't do build... ?
2017-11-16 10:10:03 -08:00
Owen Cliffe
8aa2c8958f Remove java tutorial, link to FDK (#504) 2017-11-15 16:06:42 -08:00
Reed Allman
91d2a89e19 Merge pull request #447 from fnproject/tracing_to_prometheus
Tracing to prometheus
2017-10-25 10:58:07 -07:00
Nigel Deakin
0e2bc34863 Send serve_http spans to Prometheus as well. Revamp Grafana dashboard. 2017-10-25 15:12:44 +01:00
Travis Reeder
94f2d9bec2 Missing a file for example 2017-10-25 14:57:50 +02:00
Nigel Deakin
0ddb750eaa Send serve_http spans to Prometheus as well. Revamp Grafana dashboard. 2017-10-25 12:58:08 +01:00
Denis Makogon
6a23bc3a6b Fixing links to hot samples (#452)
Hot formats were moved
2017-10-22 16:37:31 +02:00
Nigel Deakin
7e88d996a5 Export tracing spans to Prometheus 2017-10-20 18:28:42 +01:00
Nigel Deakin
3b43502ff7 Send tracing spans to Prometheus 2017-10-20 16:37:36 +01:00
Nigel Deakin
dd1cc0f0ce Send tracing spans to Prometheus 2017-10-20 16:35:58 +01:00
Nigel Deakin
b5f655d218 Send tracing spans to Prometheus 2017-10-20 16:35:30 +01:00
Nigel Deakin
85538760e6 Send tracing spans to Prometheus 2017-10-20 16:32:37 +01:00
Nigel Deakin
39feaf8b69 Send tracing spans to Prometheus 2017-10-20 16:30:19 +01:00
Denis Makogon
357de7085a Updating Python hot HTTP/JSON sample (#379)
* Updating Python hot HTTP sample

 - using latest hotfn 0.0.5 release (made life lot easier)

* Updating to latest 0.0.6 release

 What's new?
 - new request data signature: context, data, loop
 - supports event loop (very useful for request body handeler of coroutine type)

* Updating example with respect to recent fdk-python release

* Addressing review comments
2017-10-18 15:32:57 +03:00
Chad Arimura
7dc1d6fb03 Update func.go (#435) 2017-10-18 14:32:34 +02:00
Denis Makogon
ce25adfddb JSON protocol updating (#426)
* JSON protocol updating

 this patch adds HTTP query string into payload (see more TODOs in code)
 adds one more test to verify query

* Fixing FMT
2017-10-12 23:10:21 +03:00
Nigel Deakin
1646d25c01 Merge pull request #396 from fnproject/add_prometheus_metrics
Add Prometheus statistics and an example to showcase them using Grafana
2017-10-10 09:37:28 +01:00
Reed Allman
a4de984f79 add fdk-go to main docs (#412)
* add fdk-go to main docs

* add note about using fdk-go to hot example
2017-10-09 14:43:28 -07:00
Nigel Deakin
1c65233db2 Minor tweaks to README 2017-10-09 10:42:44 +01:00
Denis Makogon
8f5ac1ac98 Func example in Python would pushed be later 2017-10-08 13:07:07 +03:00
Denis Makogon
3ae55af392 Adding JSON format validation API tests 2017-10-07 00:43:09 +03:00
Denis Makogon
c2ee67fb21 Revisiting request body processing 2017-10-07 00:43:09 +03:00
Denis Makogon
783490dc79 Addressing certain comments
What's new?
 - better error handling
 - still need to decode JSON from function because we need status code and body
 - prevent request body to be a problem by deferring its close
 - moving examples around: putting http and json samples into one folder
2017-10-07 00:43:07 +03:00
Denis Makogon
ecaa5eefbf Cleaning up code
Getting rid of request url, call id, method: all of them are
 redundant and available through env
2017-10-07 00:43:07 +03:00
amykang2020
b6b9b55ca9 apply/make Travis's json-format branch prototype to work with latest restructured master; added StatusCode to JSONOutput server-function contract 2017-10-07 00:43:07 +03:00
Reed Allman
8a59654582 go vet yourself (#397)
go vet caught some nifty bugs. so fixed those here, and also made it so that
we vet everything from now on since the robots seem to do a better job of
vetting than we have managed to.

also adds gofmt check to circle. could move this to the test.sh script (didn't
want a script calling a script, because $reasons) and it's nice and isolated
in its own little land as it is. side note, changed the script so it runs in
100ms instead of 3s, i think find is a lot faster than go list.

attempted some minor cleanup of various scripts
2017-10-06 08:42:33 -07:00
Nigel Deakin
99bbe834bd Add screenshot 2017-10-05 17:19:42 +01:00
Nigel Deakin
ae31944224 Add Prometheus statistics and an example to showcase them using Grafana 2017-10-05 16:21:31 +01:00
Travis Reeder
3ad99627de Update README.md 2017-10-03 17:30:05 -07:00
Travis Reeder
7d1802425a Fix type 2017-10-02 20:14:51 -07:00
James Jeffrey
c7f3066c75 Update references remove refs to treeder oracle funcy (#376)
* Remove lots of refs to iron and funcy oracle etc..

* more ref replacements

* Replacing more refs. Treeder

* Use Fn not FN
2017-09-29 16:22:15 -07:00
Travis Reeder
5219227393 Updated docs on configuration and required env vars. (#285)
* Updated docs on configuration and required env vars.

* minor
2017-09-29 16:20:46 -07:00