summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/prometheus/alert-rules.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-14 11:42:32 +0200
committermakefu <github@syntax-fehler.de>2020-09-14 11:42:32 +0200
commitdf4f3982b15bf107db1b2c5cad58167e30fb3dec (patch)
treee7c1ef601e6b3f1cf99d7be60a4b697a9b38c7de /krebs/2configs/shack/prometheus/alert-rules.nix
parent57e6296ac4ca6b600f9e57b2c347f413096d09ed (diff)
shack/prometheus: use correct alias for rules
Diffstat (limited to 'krebs/2configs/shack/prometheus/alert-rules.nix')
-rw-r--r--krebs/2configs/shack/prometheus/alert-rules.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/krebs/2configs/shack/prometheus/alert-rules.nix b/krebs/2configs/shack/prometheus/alert-rules.nix
index 730921bee..0da1128ab 100644
--- a/krebs/2configs/shack/prometheus/alert-rules.nix
+++ b/krebs/2configs/shack/prometheus/alert-rules.nix
@@ -10,7 +10,7 @@ in {
{
alert = "RootPartitionFull";
for = "30m";
- expr = ''(node_filesystem_avail_bytes{alias="wolf",mountpoint="/"} * 100) / node_filesystem_size_bytes{alias="wolf",mountpoint="/"} < ${disk_free_threshold}'';
+ expr = ''(node_filesystem_avail_bytes{alias="wolf.shack",mountpoint="/"} * 100) / node_filesystem_size_bytes{alias="wolf.shack",mountpoint="/"} < ${disk_free_threshold}'';
labels.severity = "warning";
annotations.summary = "{{ $labels.alias }} root disk full";
annotations.url = "http://grafana.shack/";
@@ -19,7 +19,7 @@ in {
{
alert = "RootPartitionFull";
for = "30m";
- expr = ''(node_filesystem_avail_bytes{alias="puyak",mountpoint="/"} * 100) / node_filesystem_size_bytes{alias="puyak",mountpoint="/"} < ${disk_free_threshold}'';
+ expr = ''(node_filesystem_avail_bytes{alias="puyak.shack",mountpoint="/"} * 100) / node_filesystem_size_bytes{alias="puyak.shack",mountpoint="/"} < ${disk_free_threshold}'';
labels.severity = "warning";
annotations.summary = "{{ $labels.alias }} root disk full";
annotations.url = "http://grafana.shack/";
@@ -27,7 +27,7 @@ in {
}
{
alert = "HostDown";
- expr = ''up{alias="wolf"} == 0'';
+ expr = ''up{alias="wolf.shack"} == 0'';
for = "5m";
labels.severity = "page";
annotations.summary = "Instance {{ $labels.alias }} down for 5 minutes";