diff --git a/sync.go b/sync.go index bd60aed..b7b5766 100644 --- a/sync.go +++ b/sync.go @@ -8,6 +8,7 @@ import ( "time" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promhttp" ) @@ -111,8 +112,8 @@ func main() { // Add the standard process and Go metrics to the custom registry. reg.MustRegister( - prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}), - prometheus.NewGoCollector(), + collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), + collectors.NewGoCollector(), httpDuration, )