From bd3e6d224cf1559c1c11992bbf1e0e73f46dce81 Mon Sep 17 00:00:00 2001 From: Povilas Versockas Date: Tue, 31 Mar 2020 18:09:08 +0300 Subject: [PATCH] Add NodeTextFileCollectorScrapeError alert to mixin Signed-off-by: Povilas Versockas --- docs/node-mixin/alerts/alerts.libsonnet | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet index 6c5ca573..caef02dc 100644 --- a/docs/node-mixin/alerts/alerts.libsonnet +++ b/docs/node-mixin/alerts/alerts.libsonnet @@ -190,8 +190,21 @@ (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75 ||| % $._config, annotations: { - summary: 'Number of conntrack are getting close to the limit', - description: '{{ $value | humanizePercentage }} of conntrack entries are used', + summary: 'Number of conntrack are getting close to the limit.', + description: '{{ $value | humanizePercentage }} of conntrack entries are used.', + }, + labels: { + severity: 'warning', + }, + }, + { + alert: 'NodeTextFileCollectorScrapeError', + expr: ||| + node_textfile_scrape_error{%(nodeExporterSelector)s} == 1 + ||| % $._config, + annotations: { + summary: 'Node Exporter text file collector failed to scrape.', + description: 'Node Exporter text file collector failed to scrape.', }, labels: { severity: 'warning',