Compare commits
No commits in common. "hermes-repair/sonar-AZ4WREVmqCRMjDT4bXbu" and "main" have entirely different histories.
hermes-rep
...
main
@ -162,11 +162,11 @@ func (t *telemetry) RecordInventory(inv api.InventoryResponse) {
|
||||
}
|
||||
reasonLabels["reason"] = reason
|
||||
setMetric(t.pvcBackupHealthReason, reasonLabels, 1)
|
||||
health := 0.0
|
||||
if pvc.Healthy {
|
||||
health = 1
|
||||
setMetric(t.pvcBackupHealth, labels, 1)
|
||||
} else {
|
||||
setMetric(t.pvcBackupHealth, labels, 0)
|
||||
}
|
||||
setMetric(t.pvcBackupHealth, labels, health)
|
||||
if pvc.LastBackupAt == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user