From 7f39fc59f87d64341f05727eb0bf847be0fa2c4b Mon Sep 17 00:00:00 2001 From: Philipp Weber Date: Wed, 24 Jan 2018 10:26:44 +0100 Subject: [PATCH] Fix mismatch in function call due to outdated source code fork --- plugins/outputs/prometheus_client/prometheus_client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/outputs/prometheus_client/prometheus_client.go b/plugins/outputs/prometheus_client/prometheus_client.go index 1c8f4dd0a84c3..534d36e60c1f0 100644 --- a/plugins/outputs/prometheus_client/prometheus_client.go +++ b/plugins/outputs/prometheus_client/prometheus_client.go @@ -149,8 +149,7 @@ func (p *PrometheusClient) Start() error { mux := http.NewServeMux() mux.Handle(p.Path, p.basicAuth(promhttp.HandlerFor( - prometheus.DefaultGatherer, - promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError}))) + registry, promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError}))) if p.TLS { p.server = &http.Server{