Skip to content
Snippets Groups Projects
Commit 9015fa06 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '1056-add-container-name-to-containermemoryusage-alert' into 'main'

Resolve "Add container name to ContainerMemoryUsage alert"

Closes #1056

See merge request stackspin/stackspin!657
parents 72b62b17 4f7d8489
No related branches found
No related tags found
No related merge requests found
...@@ -68,10 +68,10 @@ spec: ...@@ -68,10 +68,10 @@ spec:
# https://awesome-prometheus-alerts.grep.to/rules#rule-docker-containers-1-4 # https://awesome-prometheus-alerts.grep.to/rules#rule-docker-containers-1-4
- alert: ContainerMemoryUsage - alert: ContainerMemoryUsage
expr: (sum(container_memory_working_set_bytes) BY (instance, name) / sum(container_spec_memory_limit_bytes > 0) BY (instance, name) * 100) > 80 expr: (sum(container_memory_working_set_bytes) BY (container) / sum(container_spec_memory_limit_bytes > 0) BY (container) * 100) > 80
for: 2m for: 2m
labels: labels:
severity: warning severity: warning
annotations: annotations:
summary: Container Memory usage (instance {{ $labels.instance }}) summary: Container Memory usage ({{ $labels.container }})
description: "Container Memory usage is above 80%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" description: "Container Memory usage is above 80%\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment