mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-11 13:31:45 +01:00
Add diagnostic output for healthcheck
This commit is contained in:
@@ -152,7 +152,10 @@ func (m *MemoryStore) HealthCheck(cluster string,
|
|||||||
healthyCount := len(expectedMetrics) - degradedCount - missingCount
|
healthyCount := len(expectedMetrics) - degradedCount - missingCount
|
||||||
|
|
||||||
if degradedCount > 0 {
|
if degradedCount > 0 {
|
||||||
cclog.ComponentDebug("metricstore", "HealthCheck: node", hostname, "degraded metrics:", degradedList)
|
cclog.ComponentInfo("metricstore", "HealthCheck: node ", hostname, "degraded metrics:", degradedList)
|
||||||
|
}
|
||||||
|
if missingCount > 0 {
|
||||||
|
cclog.ComponentInfo("metricstore", "HealthCheck: node ", hostname, "missing metrics:", missingList)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user