diff --git a/main.go b/main.go index a4e16cf..06b866b 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "net/http" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promhttp" ) @@ -55,8 +56,8 @@ func init() { func main() { reg := prometheus.NewPedanticRegistry() reg.MustRegister( - prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}), - prometheus.NewGoCollector(), + collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), + collectors.NewGoCollector(), ) prometheus.WrapRegistererWithPrefix("", reg).MustRegister(SMARTctlManagerCollector{})