Skip to content

Commit

Permalink
Changed rule to use on() function instead of ingore() function
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Jun 27, 2023
1 parent b935c22 commit f0b91eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/vsphere_problem_detector/12_prometheusrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ spec:
- alert: VSphereOpenshiftVmsCBTMismatch
# Using min_over_time to make sure the metric is `1` for whole 5 minutes.
# A missed scraping (e.g. due to a pod restart) will result in prometheus re-evaluating the the alerting rule.
expr: min_over_time(vsphere_vm_cbt_checks{cbt=~"enabled"}[5m]) > 0 and ignoring (cbt) min_over_time(vsphere_vm_cbt_checks{cbt=~"disabled"}[5m]) > 0
expr: min_over_time(vsphere_vm_cbt_checks{cbt=~"enabled"}[5m]) > 0 and on() min_over_time(vsphere_vm_cbt_checks{cbt=~"disabled"}[5m]) > 0
for: 10m
labels:
severity: warning
Expand Down

0 comments on commit f0b91eb

Please sign in to comment.