...

Source file src/edge-infra.dev/pkg/sds/etcd/manager/internal/observability/health.go

Documentation: edge-infra.dev/pkg/sds/etcd/manager/internal/observability

     1  package observability
     2  
     3  // ReportHealthMetrics exposes the cluster's health as a metric to Prometheus
     4  func ReportHealthMetrics(isHealthy bool) {
     5  	switch isHealthy {
     6  	case true:
     7  		EtcdClusterHealth.WithLabelValues().Set(1)
     8  	case false:
     9  		EtcdClusterHealth.WithLabelValues().Set(0)
    10  	}
    11  }
    12  

View as plain text