mirror of https://github.com/status-im/consul.git
prometheussink has the same number of params again
This commit is contained in:
parent
b81edac7bb
commit
49f017bd42
|
@ -377,12 +377,12 @@ func InitTelemetry(cfg TelemetryConfig) (*metrics.InmemSink, error) {
|
||||||
if err := addSink(circonusSink); err != nil {
|
if err := addSink(circonusSink); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if err := addSink(circonusSink); err != nil {
|
||||||
promSink, err := prometheusSink(cfg, metricsConf.HostName)
|
return nil, err
|
||||||
if err != nil {
|
}
|
||||||
|
if err := addSink(prometheusSink); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
sinks = append(sinks, promSink)
|
|
||||||
|
|
||||||
if len(sinks) > 0 {
|
if len(sinks) > 0 {
|
||||||
sinks = append(sinks, memSink)
|
sinks = append(sinks, memSink)
|
||||||
|
|
Loading…
Reference in New Issue