Skip to content

Commit

Permalink
removed deprecated funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
metonymic-smokey committed Sep 25, 2021
1 parent 3554fc9 commit a1e7a7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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,
)

Expand Down

0 comments on commit a1e7a7a

Please sign in to comment.