Skip to content

Commit

Permalink
Adapt for updated Prometheus API
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Jerram committed Sep 14, 2018
1 parent e66f3b8 commit bf5f83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ func servePrometheusMetrics(configParams *config.Config) {
}
if !configParams.PrometheusProcessMetricsEnabled {
log.Info("Discarding process metrics")
prometheus.Unregister(prometheus.NewProcessCollector(os.Getpid(), ""))
prometheus.Unregister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}))
}
}
http.Handle("/metrics", promhttp.Handler())
Expand Down

0 comments on commit bf5f83c

Please sign in to comment.