Skip to content

Commit

Permalink
Update Cpu/Memory usage alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilb committed Oct 20, 2017
1 parent 9a92732 commit e8cfbe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/prometheus/rules/node.rules
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ groups:
description: '{{ $labels.node }} is under disk pressure.'
summary: Node is under disk pressure.
- alert: NodeCPUUsage
expr: (100 - (avg by (instance) (irate(node_cpu{job="node-exporter",mode="idle"}[5m])) * 100)) > 80
expr: (100 - (avg by (instance) (irate(node_cpu{job="node-exporter",mode="idle"}[5m])) * 100)) > 90
for: 30m
labels:
severity: warning
annotations:
summary: "{{$labels.instance}}: High CPU usage detected"
description: "{{$labels.instance}}: CPU usage is above 85% (current value is: {{ $value }})"
description: "{{$labels.instance}}: CPU usage is above 90% (current value is: {{ $value }})"
- alert: NodeMemoryUsage
expr: (((node_memory_MemTotal-node_memory_MemFree-node_memory_Cached)/(node_memory_MemTotal)*100)) > 85
expr: (((node_memory_MemTotal-node_memory_MemFree-node_memory_Cached)/(node_memory_MemTotal)*100)) > 90
for: 30m
labels:
severity: warning
annotations:
summary: "{{$labels.instance}}: High memory usage detected"
description: "{{$labels.instance}}: Memory usage is above 85% (current value is: {{ $value }})"
description: "{{$labels.instance}}: Memory usage is above 90% (current value is: {{ $value }})"

0 comments on commit e8cfbe4

Please sign in to comment.