Skip to content

Commit

Permalink
Remove metrics update on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
roypeter committed Sep 9, 2024
1 parent 2dca65b commit 0be2841
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dhis2/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
info, err := client.GetInfo()
if err != nil {
log.Printf("ERROR: Failed to get system information from %s: %v\n", client.BaseURL, err)
mu.Lock()
e.info.WithLabelValues("", "", client.BaseURL, "").Set(0)
mu.Unlock()
return
}

Expand Down

0 comments on commit 0be2841

Please sign in to comment.