Skip to content

Commit

Permalink
use container_memory_working_set_bytes instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk committed Jan 13, 2025
1 parent 49cd6d7 commit 6104e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .nais/alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:

# This alert checks if memory usage exceeds 90% of the 12GB limit, which could cause instability.
- alert: HighMemoryUsage
expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(namespace, pod) kube_pod_container_resource_limits_memory_bytes{pod=~"pseudo-service-.*"})
expr: sum by (namespace, pod) (container_memory_working_set_bytes{namespace="dapla-stat", pod=~"pseudo-service-.*"}) > 0.9 * sum by (namespace, pod) (kube_pod_container_resource_limits_memory_bytes{namespace="dapla-stat", pod=~"pseudo-service-.*"})
for: 5m
annotations:
title: "High memory usage detected"
Expand Down

0 comments on commit 6104e91

Please sign in to comment.