Skip to content

Commit

Permalink
Include alerts for critical lbs
Browse files Browse the repository at this point in the history
Adds critical alerts for load balancers without
members or with error for more than 5 minutes. Also,
includes warning alerts for load balancers with only
one member.
  • Loading branch information
MaysaMacedo committed Jul 1, 2021
1 parent 7ca1d7b commit 9162487
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bindata/network/kuryr/alert-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,27 @@ spec:
histogram_quantile(0.95, rate(kuryr_cni_request_duration_seconds_bucket[10m])) > 30
labels:
severity: warning
- alert: KuryrLoadBalancerWithError
annotations:
message: Load Balancer {{"{{"}} $labels.lb_name {{"}}"}} is with {{"{{"}} $labels.kuryr_critical_lb_state {{"}}"}} state for more then 5m.
expr: |
kuryr_critical_lb_state{kuryr_critical_lb_state='ERROR'} == 1
for: 5m
labels:
severity: critical
- alert: LimitedLoadBalancerMembers
annotations:
message: Low number of Members on Load Balancer {{"{{"}} $labels.lb_name {{"}}"}} with pool {{"{{"}} $labels.lb_pool_name {{"}}"}} for more then 5 min.
expr: |
kuryr_lb_members_count == 1
for: 5m
labels:
severity: warning
- alert: InsuficientLoadBalancerMembers
annotations:
message: No Members on Load Balancer {{"{{"}} $labels.lb_name {{"}}"}} with pool {{"{{"}} $labels.lb_pool_name {{"}}"}} for more then 5 min.
expr: |
kuryr_lb_members_count == 0
for: 5m
labels:
severity: critical

0 comments on commit 9162487

Please sign in to comment.