Skip to content

Commit

Permalink
Merge pull request #20 from joaosilva15/patch-1
Browse files Browse the repository at this point in the history
Enable squid_up
  • Loading branch information
boynux authored Oct 28, 2018
2 parents 5b3c0f6 + 8025c85 commit 129682c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 129682c

Please sign in to comment.