From ccb138374e92aaf09853205d70f6617e0c55a22c Mon Sep 17 00:00:00 2001
From: Lili Cosic <cosiclili@gmail.com>
Date: Wed, 24 Jul 2019 14:58:23 +0200
Subject: [PATCH] jsonnet: Include node name in NodeDiskRunningFull

This makes it easier to indetify which node alert is firing for.
Currently only device namespace and pod name were included in
the alert.
---
 jsonnet/kube-prometheus/alerts/node.libsonnet | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jsonnet/kube-prometheus/alerts/node.libsonnet b/jsonnet/kube-prometheus/alerts/node.libsonnet
index 68a42425..3c61c170 100644
--- a/jsonnet/kube-prometheus/alerts/node.libsonnet
+++ b/jsonnet/kube-prometheus/alerts/node.libsonnet
@@ -7,7 +7,7 @@
           {
             alert: 'NodeDiskRunningFull',
             annotations: {
-              message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} will be full within the next 24 hours.',
+              message: 'Device {{ $labels.device }} on node {{ $labels.instance }} will be full within the next 24 hours.',
             },
             expr: |||
               (node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[6h], 3600 * 24) < 0)
@@ -20,7 +20,7 @@
           {
             alert: 'NodeDiskRunningFull',
             annotations: {
-              message: 'Device {{ $labels.device }} of node-exporter {{ $labels.namespace }}/{{ $labels.pod }} will be full within the next 2 hours.',
+              message: 'Device {{ $labels.device }} on node {{ $labels.instance }} will be full within the next 2 hours.',
             },
             expr: |||
               (node:node_filesystem_usage: > 0.85) and (predict_linear(node:node_filesystem_avail:[30m], 3600 * 2) < 0)
-- 
GitLab