Skip to content

Commit 07f3c56

Browse files
Merge pull request #271 from tremes/report_metrics
Init health status metrics to distinguish no report state vs 0 problems
2 parents 444de44 + 382dca9 commit 07f3c56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/insights/insightsreport/insightsreport.go

+6
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,10 @@ func init() {
245245
if err != nil {
246246
fmt.Println(err)
247247
}
248+
249+
insightsStatus.WithLabelValues("low").Set(float64(-1))
250+
insightsStatus.WithLabelValues("moderate").Set(float64(-1))
251+
insightsStatus.WithLabelValues("important").Set(float64(-1))
252+
insightsStatus.WithLabelValues("critical").Set(float64(-1))
253+
insightsStatus.WithLabelValues("total").Set(float64(-1))
248254
}

0 commit comments

Comments
 (0)