fix: missing metrics for healed objects (#19392)

all healed successful objects via queueHealTask
in a non-blocking heal weren't being reported
correctly, this PR fixes this comprehensively.
This commit is contained in:
Harshavardhana
2024-04-01 23:48:36 -07:00
committed by GitHub
parent ae4fb1b72e
commit 4f660a8eb7
4 changed files with 51 additions and 35 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ func healingMetricsPrometheus(ch chan<- prometheus.Metric) {
float64(v), string(k),
)
}
for k, v := range bgSeq.gethealFailedItemsMap() {
for k, v := range bgSeq.getHealFailedItemsMap() {
// healFailedItemsMap stores the endpoint and volume state separated by comma,
// split the fields and pass to channel at correct index
s := strings.Split(k, ",")