Skip to content

Commit a8194de

Browse files
committed
Add diagnostic output for healthcheck
1 parent 1145b31 commit a8194de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/metricstore/healthcheck.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ func (m *MemoryStore) HealthCheck(cluster string,
152152
healthyCount := len(expectedMetrics) - degradedCount - missingCount
153153

154154
if degradedCount > 0 {
155-
cclog.ComponentDebug("metricstore", "HealthCheck: node", hostname, "degraded metrics:", degradedList)
155+
cclog.ComponentInfo("metricstore", "HealthCheck: node ", hostname, "degraded metrics:", degradedList)
156+
}
157+
if missingCount > 0 {
158+
cclog.ComponentInfo("metricstore", "HealthCheck: node ", hostname, "missing metrics:", missingList)
156159
}
157160

158161
switch {

0 commit comments

Comments
 (0)