Skip to content

Commit

Permalink
change expression for HighMemoryUsage
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk committed Jan 13, 2025
1 parent 3ee443c commit 49cd6d7
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 * 12 * 1024 * 1024 * 1024)
expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(namespace, pod) kube_pod_container_resource_limits_memory_bytes{pod=~"pseudo-service-.*"})
for: 5m
annotations:
title: "High memory usage detected"
Expand Down

0 comments on commit 49cd6d7

Please sign in to comment.