Skip to content

Commit

Permalink
Increase tenant workload memory alert threshold to 90%
Browse files Browse the repository at this point in the history
  • Loading branch information
ludydoo committed Oct 29, 2024
1 parent e0167fe commit afe0e28
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -241,7 +241,7 @@ spec:
record: rhacs_tenants:namespace:pod:container:max_memory_usage_ratio
- alert: RHACSTenantWorkloadMemoryUtilizationHigh
expr: |
rhacs_tenants:namespace:pod:container:max_memory_usage_ratio{container="central"} >= 0.85
rhacs_tenants:namespace:pod:container:max_memory_usage_ratio{container="central"} >= 0.9
for: 30m
labels:
severity: warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ tests:
- interval: 1m
input_series:
- series: container_memory_working_set_bytes{namespace="rhacs-aaaaaaaaaaaaaaaaaaaa", pod="mypod", container="central"}
# first 10 minutes no alert and then 85% CPU usage for 40 minutes
values: "50+0x10 85+0x40"
# first 10 minutes no alert and then 90% CPU usage for 40 minutes
values: "50+0x10 90+0x40"
- series: container_spec_memory_limit_bytes{namespace="rhacs-aaaaaaaaaaaaaaaaaaaa",pod="mypod", container="central"}
values: "100+0x40"
alert_rule_test:
Expand All @@ -26,7 +26,7 @@ tests:
container: central
exp_annotations:
summary: tenant 'rhacs-aaaaaaaaaaaaaaaaaaaa' container 'central' in pod 'mypod' is reaching its memory limit.
description: tenant 'rhacs-aaaaaaaaaaaaaaaaaaaa' container 'central' in pod 'mypod' reached 85% of its memory limit and is at risk of being OOM killed.
description: tenant 'rhacs-aaaaaaaaaaaaaaaaaaaa' container 'central' in pod 'mypod' reached 90% of its memory limit and is at risk of being OOM killed.
sop_url: "https://gitlab.cee.redhat.com/stackrox/acs-cloud-service/runbooks/-/blob/master/sops/dp-039-tenant-workload-memory-utilization-high.md"
- interval: 1m
input_series:
Expand Down

0 comments on commit afe0e28

Please sign in to comment.