Add NodeTextFileCollectorScrapeError alert to mixin

Signed-off-by: Povilas Versockas <p.versockas@gmail.com>
This commit is contained in:
Povilas Versockas 2020-03-31 18:09:08 +03:00
parent 99182a3fe0
commit bd3e6d224c
No known key found for this signature in database
GPG Key ID: 394F2BDC36A5C701
1 changed files with 15 additions and 2 deletions

View File

@ -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',