Skip to content

Commit bd3e6d2

Browse files
committed
Add NodeTextFileCollectorScrapeError alert to mixin
Signed-off-by: Povilas Versockas <p.versockas@gmail.com>
1 parent 99182a3 commit bd3e6d2

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

docs/node-mixin/alerts/alerts.libsonnet

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,21 @@
190190
(node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75
191191
||| % $._config,
192192
annotations: {
193-
summary: 'Number of conntrack are getting close to the limit',
194-
description: '{{ $value | humanizePercentage }} of conntrack entries are used',
193+
summary: 'Number of conntrack are getting close to the limit.',
194+
description: '{{ $value | humanizePercentage }} of conntrack entries are used.',
195+
},
196+
labels: {
197+
severity: 'warning',
198+
},
199+
},
200+
{
201+
alert: 'NodeTextFileCollectorScrapeError',
202+
expr: |||
203+
node_textfile_scrape_error{%(nodeExporterSelector)s} == 1
204+
||| % $._config,
205+
annotations: {
206+
summary: 'Node Exporter text file collector failed to scrape.',
207+
description: 'Node Exporter text file collector failed to scrape.',
195208
},
196209
labels: {
197210
severity: 'warning',

0 commit comments

Comments
 (0)