mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-11 13:31:45 +01:00
Update to count healthy metrics
This commit is contained in:
@@ -243,9 +243,8 @@ func (m *MemoryStore) HealthCheck(cluster string,
|
||||
continue
|
||||
}
|
||||
|
||||
missingCount = len(missingList)
|
||||
degradedCount = len(degradedList)
|
||||
healthyCount = len(expectedMetrics) - (missingCount + degradedCount)
|
||||
uniqueList := mergeList(missingList, degradedList)
|
||||
healthyCount = len(expectedMetrics) - len(uniqueList)
|
||||
|
||||
// Debug log missing and degraded metrics
|
||||
if missingCount > 0 {
|
||||
|
||||
Reference in New Issue
Block a user