Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmarsh committed Feb 9, 2023
1 parent dd814ca commit eec549c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
}
if err := group.Wait(); err != nil {
up = 0
log.Error("collecting: %w", err)
fmt.Println(fmt.Sprintf("collecting: %w", err))
}
ch <- prometheus.MustNewConstMetric(e.up.Desc(), prometheus.GaugeValue, float64(up))
ch <- e.totalScrapes
Expand Down

0 comments on commit eec549c

Please sign in to comment.