diff --git a/flux2/config/monitoring/stackspin-alerts-prometheusrule.yaml b/flux2/config/monitoring/stackspin-alerts-prometheusrule.yaml index 9a2f8d4cfdb5743b0566aac82dd10db7f977ae2d..0acd5cebd0061b32059d7f4d657f323f3728db9e 100644 --- a/flux2/config/monitoring/stackspin-alerts-prometheusrule.yaml +++ b/flux2/config/monitoring/stackspin-alerts-prometheusrule.yaml @@ -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 }}"