diff options
author | Ben Kochie <bjk@gitlab.com> | 2019-06-12 13:10:37 +0300 |
---|---|---|
committer | Ben Kochie <bjk@gitlab.com> | 2019-08-08 17:52:16 +0300 |
commit | c3906a374f9f9feb182e98bd6669ce467967457a (patch) | |
tree | 9dfab997536f455d9716741717ccfab060b82f28 | |
parent | dee0cd546b1269636acef1af2fd90e0861c01046 (diff) |
Use simplified Prometheus handler func.
-rw-r--r-- | app.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -12,7 +12,6 @@ import ( "sync" "time" - "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/rs/cors" log "github.com/sirupsen/logrus" @@ -301,7 +300,7 @@ func (a *theApp) Run() { go func(fd uintptr) { defer wg.Done() - handler := promhttp.HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{}).ServeHTTP + handler := promhttp.Handler().ServeHTTP err := listenAndServe(fd, handler, false, nil, nil) if err != nil { capturingFatal(err, errortracking.WithField("listener", "metrics")) |