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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
missingCount = len(missingList)
|
uniqueList := mergeList(missingList, degradedList)
|
||||||
degradedCount = len(degradedList)
|
healthyCount = len(expectedMetrics) - len(uniqueList)
|
||||||
healthyCount = len(expectedMetrics) - (missingCount + degradedCount)
|
|
||||||
|
|
||||||
// Debug log missing and degraded metrics
|
// Debug log missing and degraded metrics
|
||||||
if missingCount > 0 {
|
if missingCount > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user