diff --git a/pkg/metricstore/healthcheck.go b/pkg/metricstore/healthcheck.go index f390749d..cfb4688d 100644 --- a/pkg/metricstore/healthcheck.go +++ b/pkg/metricstore/healthcheck.go @@ -11,6 +11,7 @@ import ( "slices" "time" + cclog "github.com/ClusterCockpit/cc-lib/v2/ccLogger" "github.com/ClusterCockpit/cc-lib/v2/schema" ) @@ -246,6 +247,14 @@ func (m *MemoryStore) HealthCheck(cluster string, degradedCount = len(degradedList) healthyCount = len(expectedMetrics) - (missingCount + degradedCount) + // Debug log missing and degraded metrics + if missingCount > 0 { + cclog.ComponentDebug("metricstore", "HealthCheck: node", hostname, "missing metrics:", missingList) + } + if degradedCount > 0 { + cclog.ComponentDebug("metricstore", "HealthCheck: node", hostname, "degraded metrics:", degradedList) + } + // Determine overall health status if missingCount > 0 || degradedCount > 0 { if healthyCount == 0 {