Skip to content

Commit

Permalink
Merge pull request #913 from alexandrasandulescu/fix-prometheus
Browse files Browse the repository at this point in the history
Use Handler from promhttp
  • Loading branch information
Louis DeLosSantos authored Feb 5, 2020
2 parents bfa0d8a + 929b5b6 commit 1d14177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc"

Expand All @@ -43,7 +44,7 @@ func init() {
func prometheusHandler(h http.Handler) http.Handler {
mux := http.NewServeMux()
mux.Handle("/", h)
mux.Handle("/metrics", prometheus.Handler())
mux.Handle("/metrics", promhttp.Handler())
return mux
}

Expand Down

0 comments on commit 1d14177

Please sign in to comment.