From 4c77a9db1d2cc8f5c84e961c6083758e7039695e Mon Sep 17 00:00:00 2001 From: Alexander Holte-Davidsen <alexander@kit.no> Date: Thu, 22 Mar 2018 11:32:38 +0100 Subject: [PATCH] Update Alert Manager rules for NodeDiskRunningFull with summary --- assets/prometheus/rules/node.rules.yaml | 3 ++- manifests/prometheus/prometheus-k8s-rules.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/prometheus/rules/node.rules.yaml b/assets/prometheus/rules/node.rules.yaml index d14f0870..9a9d599c 100644 --- a/assets/prometheus/rules/node.rules.yaml +++ b/assets/prometheus/rules/node.rules.yaml @@ -35,6 +35,7 @@ groups: annotations: description: device {{$labels.device}} on node {{$labels.instance}} is running full within the next 24 hours (mounted at {{$labels.mountpoint}}) + summary: Node disk is running full within 24 hours - alert: NodeDiskRunningFull expr: predict_linear(node_filesystem_free[30m], 3600 * 2) < 0 for: 10m @@ -43,4 +44,4 @@ groups: annotations: description: device {{$labels.device}} on node {{$labels.instance}} is running full within the next 2 hours (mounted at {{$labels.mountpoint}}) - summary: Node disk is running full + summary: Node disk is running full within 2 hours diff --git a/manifests/prometheus/prometheus-k8s-rules.yaml b/manifests/prometheus/prometheus-k8s-rules.yaml index 0e548cec..470d27c9 100644 --- a/manifests/prometheus/prometheus-k8s-rules.yaml +++ b/manifests/prometheus/prometheus-k8s-rules.yaml @@ -531,6 +531,7 @@ data: annotations: description: device {{$labels.device}} on node {{$labels.instance}} is running full within the next 24 hours (mounted at {{$labels.mountpoint}}) + summary: Node disk is running full within 24 hours - alert: NodeDiskRunningFull expr: predict_linear(node_filesystem_free[30m], 3600 * 2) < 0 for: 10m @@ -539,7 +540,7 @@ data: annotations: description: device {{$labels.device}} on node {{$labels.instance}} is running full within the next 2 hours (mounted at {{$labels.mountpoint}}) - summary: Node disk is running full + summary: Node disk is running full within 2 hours prometheus.rules.yaml: |+ groups: - name: prometheus.rules -- GitLab