From 64c82130b9780e2df3cb2f47c930c2994d27959b Mon Sep 17 00:00:00 2001 From: Kit Patella Date: Mon, 16 Nov 2020 14:01:40 -0800 Subject: [PATCH] prometheussink has the same number of params again --- lib/telemetry.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/telemetry.go b/lib/telemetry.go index 4b0a04356..5c98bda79 100644 --- a/lib/telemetry.go +++ b/lib/telemetry.go @@ -377,12 +377,12 @@ func InitTelemetry(cfg TelemetryConfig) (*metrics.InmemSink, error) { if err := addSink(circonusSink); err != nil { return nil, err } - - promSink, err := prometheusSink(cfg, metricsConf.HostName) - if err != nil { + if err := addSink(circonusSink); err != nil { + return nil, err + } + if err := addSink(prometheusSink); err != nil { return nil, err } - sinks = append(sinks, promSink) if len(sinks) > 0 { sinks = append(sinks, memSink)