Skip to content

Commit

Permalink
flip expression
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Jan 13, 2025
1 parent e997c82 commit 9427a7d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/prometheus_alert_rules/memory.rules
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,11 @@ groups:
The 5-minute-ahead prediction is made as a linear regression from the last 30 minutes of data.
- alert: HostMemoryFull
expr: |
100 *
(
(
avg_over_time(node_memory_MemTotal_bytes[1m])
- avg_over_time(node_memory_MemFree_bytes[1m])
) - avg_over_time(node_memory_Hugetlb_bytes[1m])
) /
100 * avg_over_time(node_memory_MemFree_bytes[1m]) /
(
avg_over_time(node_memory_MemTotal_bytes[1m])
- avg_over_time(node_memory_Hugetlb_bytes[1m])
) > 90
) < 10
for: 2m
labels:
severity: critical
Expand Down

0 comments on commit 9427a7d

Please sign in to comment.