From e8cfbe47a8c29c23e74a6e59c27fd3cb8aba936a Mon Sep 17 00:00:00 2001 From: Camil Blanaru Date: Fri, 20 Oct 2017 16:59:09 +0200 Subject: [PATCH] Update Cpu/Memory usage alerts. --- assets/prometheus/rules/node.rules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/prometheus/rules/node.rules b/assets/prometheus/rules/node.rules index 2f2c1f0..439ab33 100644 --- a/assets/prometheus/rules/node.rules +++ b/assets/prometheus/rules/node.rules @@ -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 }})"