mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools: update metrics to use promhttp
Update function-tester/etcd-tester/main.go to use promhttp.Handler() instead of prometheus.Handler()
This commit is contained in:
parent
527d03e0d2
commit
993a0cf569
@ -24,7 +24,7 @@ import (
|
||||
"github.com/coreos/etcd/pkg/debugutil"
|
||||
|
||||
"github.com/coreos/pkg/capnslog"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"golang.org/x/time/rate"
|
||||
)
|
||||
|
||||
@ -138,7 +138,7 @@ func main() {
|
||||
|
||||
sh := statusHandler{status: &t.status}
|
||||
http.Handle("/status", sh)
|
||||
http.Handle("/metrics", prometheus.Handler())
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
|
||||
if *enablePprof {
|
||||
for p, h := range debugutil.PProfHandlers() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user