Skip to content
Snippets Groups Projects
Unverified Commit 4f7d8489 authored by Varac's avatar Varac
Browse files

Use only container label for mem usage query

parent 715bf65d
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,10 @@ spec:
# https://awesome-prometheus-alerts.grep.to/rules#rule-docker-containers-1-4
- 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
labels:
severity: warning
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 }}"
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