Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-26472: Increase RHACSTenantWorkloadMemoryUtilizationHigh eval time to 30 minutes #281

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading