mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-08-23 21:36:25 +00:00
1 when healthy, 0 when unhealthy (bool, not return code)
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user