1 when healthy, 0 when unhealthy (bool, not return code)

Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
Mikolaj Pawlikowski
2021-03-19 14:45:58 +00:00
parent e6aa196232
commit ed40304dd8
+1 -1
View File
@@ -149,7 +149,7 @@ func CountHealthyUnhealthyNodes(healthy, unhealthy float64) {
// SetClusterHealth sets the cluster health gauge to 1 (healthy) or 0 (unhealthy)
func SetClusterHealth(healthy bool) {
value := 1.0
if healthy {
if !healthy {
value = 0
}
goldpingerClusterHealthGauge.WithLabelValues(