From 8025c85d57495f55c45d594067d4196a7b90bde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Silva?= Date: Fri, 26 Oct 2018 16:00:34 +0100 Subject: [PATCH] Enable squid_up --- collector/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/metrics.go b/collector/metrics.go index 48a64cd..29b9ebf 100644 --- a/collector/metrics.go +++ b/collector/metrics.go @@ -58,7 +58,7 @@ func (e *Exporter) Describe(ch chan<- *prometheus.Desc) { /*Collect fetches metrics from squid manager and pushes them to promethus */ func (e *Exporter) Collect(c chan<- prometheus.Metric) { - prometheus.MustNewConstMetric(up, prometheus.GaugeValue, 0, e.hostname) + c <- prometheus.MustNewConstMetric(up, prometheus.GaugeValue, 0, e.hostname) insts, err := e.client.GetCounters()