Add prometheus metrics collectors for http handlers (#958)

* Add prometheus metrics exporter for http handlers

* Use prometheus from opencensus

* Add comment to unused func() param

* Add package names to operation description in observ package

* Sort exported/unexported functions
This commit is contained in:
Tomasz Tomalak
2018-12-20 10:19:22 +01:00
committed by Michal Pristas
parent 5eba6f2e47
commit fb696b2d84
109 changed files with 20538 additions and 14 deletions
+6
View File
@@ -138,6 +138,12 @@ TraceExporter = "jaeger"
# Env override: ATHENS_TRACE_EXPORTER_URL
TraceExporterURL = "http://localhost:14268"
# Stats is not a requirement for Athens. If the value is not set,
# Athens will keep on running and stats won't be collected.
# Possible values are: prometheus.
# Env overide: ATHENS_STATS_EXPORTER
StatsExporter = "prometheus"
[Storage]
# Only storage backends that are specified in Proxy.StorageType are required here
[Storage.CDN]