fuuko/prometheus: Actually show node name in alerts

This commit is contained in:
Simon Bruder 2021-04-04 14:34:44 +02:00
parent 37f95b3d79
commit c26539e607
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -140,13 +140,13 @@ in
name = "NodeHighLoad"; name = "NodeHighLoad";
expr = ''sum by (instance) (node_load15) / count by (instance) (node_cpu_seconds_total{mode="system"}) > 2''; expr = ''sum by (instance) (node_load15) / count by (instance) (node_cpu_seconds_total{mode="system"}) > 2'';
for = "15m"; for = "15m";
description = "This node is having a per-core load 2 for the last 15 minutes."; description = "Node {{ $labels.instance }} is having a per-core load 2 for the last 15 minutes.";
} }
{ {
name = "NodeHighMemory"; name = "NodeHighMemory";
expr = ''(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes > 0.9''; expr = ''(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes > 0.9'';
for = "2m"; for = "2m";
description = "This node is using more than 90% of available RAM."; description = "Node {{ $labels.instance }} is using more than 90% of available RAM.";
} }
{ {
name = "TP440ACPIBroken"; name = "TP440ACPIBroken";