added Prometheus instrumentation

This commit is contained in:
Stefan Prodan
2018-01-07 12:29:49 +02:00
parent ade967e0ae
commit 1180a2da5f
395 changed files with 83390 additions and 1 deletions
+2
View File
@@ -4,6 +4,7 @@ import (
"net/http"
"runtime"
"github.com/prometheus/client_golang/prometheus/promhttp"
"gopkg.in/yaml.v2"
)
@@ -20,6 +21,7 @@ func New(options ...func(*Server)) *Server {
s.mux.HandleFunc("/", s.index)
s.mux.HandleFunc("/healthz/", s.healthz)
s.mux.Handle("/metrics", promhttp.Handler())
return s
}