Skip to content

Commit aec50da

Browse files
authored
feat(lifecycle): emitter cluster health rate (#621)
1 parent 5060714 commit aec50da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/lifecycle/agent-healthz/helper/healthz_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func (h *HealthzHelper) syncHeartBeatMap() {
254254
_ = h.emitter.StoreInt64(metricsNameAgentNotFoundTotal, totalNotFoundNode[agent],
255255
metrics.MetricTypeNameRaw, tag)
256256
if nodeCount > 0 {
257-
_ = h.emitter.StoreFloat64(metricsNameAgentReadyRate, float64(totalNotReadyNode[agent])/float64(nodeCount),
257+
_ = h.emitter.StoreFloat64(metricsNameAgentReadyRate, float64(totalReadyNode[agent])/float64(nodeCount),
258258
metrics.MetricTypeNameRaw, tag)
259259
}
260260
}

0 commit comments

Comments
 (0)