Skip to content

Commit

Permalink
fix: MetroclusterCheck collector should report "no instances"
Browse files Browse the repository at this point in the history
when Metrocluster is not configured

fix: do not log error when metrocluster is not configured

Thanks to Francisca for raising.
  • Loading branch information
cgrinds committed Nov 21, 2024
1 parent cd1c48a commit 307ba69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/collectors/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ func (r *Rest) PollData() (map[string]*matrix.Matrix, error) {

startTime := time.Now()
if err := rest.FetchAllStream(r.Client, r.Prop.Href, processBatch); err != nil {
return nil, err
_, err2 := r.handleError(err)
return nil, err2
}
apiD += time.Since(startTime)

Expand Down

0 comments on commit 307ba69

Please sign in to comment.