Compare commits
1 Commits
main
...
hermes-rep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d788f33013 |
@ -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 {
|
||||
setMetric(t.pvcBackupHealth, labels, 1)
|
||||
} else {
|
||||
setMetric(t.pvcBackupHealth, labels, 0)
|
||||
health = 1
|
||||
}
|
||||
setMetric(t.pvcBackupHealth, labels, health)
|
||||
if pvc.LastBackupAt == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user