Skip to content

Commit

Permalink
Merge pull request #527 from ravisantoshgudimetla/use-different-metric
Browse files Browse the repository at this point in the history
Bug 1954790: Use appropriate metric for PDB alerts
  • Loading branch information
openshift-merge-robot committed Jun 7, 2021
2 parents 7a00c41 + 844c0ff commit c359da6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -23,15 +23,15 @@ spec:
annotations:
message: The pod disruption budget is preventing further disruption to pods because it is at the minimum allowed level.
expr: |
max by(namespace, poddisruptionbudget) (kube_poddisruptionbudget_status_expected_pods == kube_poddisruptionbudget_status_desired_healthy)
max by(namespace, poddisruptionbudget) (kube_poddisruptionbudget_status_current_healthy == kube_poddisruptionbudget_status_desired_healthy)
for: 15m
labels:
severity: warning
- alert: PodDisruptionBudgetLimit
annotations:
message: The pod disruption budget is below the minimum number allowed pods.
expr: |
max by (namespace, poddisruptionbudget) (kube_poddisruptionbudget_status_expected_pods < kube_poddisruptionbudget_status_desired_healthy)
max by (namespace, poddisruptionbudget) (kube_poddisruptionbudget_status_current_healthy < kube_poddisruptionbudget_status_desired_healthy)
for: 15m
labels:
severity: critical

0 comments on commit c359da6

Please sign in to comment.