Skip to content

Commit

Permalink
Increase RHACSTenantWorkloadMemoryUtilizationHigh eval time to 30 min…
Browse files Browse the repository at this point in the history
…utes (#281)
  • Loading branch information
kurlov authored Oct 11, 2024
1 parent eea3683 commit e0167fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/prometheus/prometheus-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ spec:
- alert: RHACSTenantWorkloadMemoryUtilizationHigh
expr: |
rhacs_tenants:namespace:pod:container:max_memory_usage_ratio{container="central"} >= 0.85
for: 10m
for: 30m
labels:
severity: warning
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ tests:
- interval: 1m
input_series:
- series: container_memory_working_set_bytes{namespace="rhacs-aaaaaaaaaaaaaaaaaaaa", pod="mypod", container="central"}
values: "50+0x10 85+0x10"
# first 10 minutes no alert and then 85% CPU usage for 40 minutes
values: "50+0x10 85+0x40"
- series: container_spec_memory_limit_bytes{namespace="rhacs-aaaaaaaaaaaaaaaaaaaa",pod="mypod", container="central"}
values: "100+0x20"
values: "100+0x40"
alert_rule_test:
- eval_time: 1m
alertname: RHACSTenantWorkloadMemoryUtilizationHigh
exp_alerts: []
- eval_time: 21m
- eval_time: 41m
alertname: RHACSTenantWorkloadMemoryUtilizationHigh
exp_alerts:
- exp_labels:
Expand Down

0 comments on commit e0167fe

Please sign in to comment.