Skip to content

Commit

Permalink
Update rule for host memory underutilization to use avg_over_time ins…
Browse files Browse the repository at this point in the history
…tead of rate, since node_memory_MemAvailable_bytes is a gauge (#400)
  • Loading branch information
brettimus authored Jan 26, 2024
1 parent df4016b commit 56a7e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/rules/host-and-hardware/node-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ groups:
description: "The node is under heavy memory pressure. High rate of major page faults\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"

- alert: HostMemoryIsUnderutilized
expr: '(100 - (rate(node_memory_MemAvailable_bytes[30m]) / node_memory_MemTotal_bytes * 100) < 20) * on(instance) group_left (nodename) node_uname_info{nodename=~".+"}'
expr: '(100 - (avg_over_time(node_memory_MemAvailable_bytes[30m]) / node_memory_MemTotal_bytes * 100) < 20) * on(instance) group_left (nodename) node_uname_info{nodename=~".+"}'
for: 1w
labels:
severity: info
Expand Down

0 comments on commit 56a7e0d

Please sign in to comment.