aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPovilas Versockas <p.versockas@gmail.com>2020-03-31 18:09:08 +0300
committerPovilas Versockas <p.versockas@gmail.com>2020-03-31 18:12:36 +0300
commitbd3e6d224cf1559c1c11992bbf1e0e73f46dce81 (patch)
treee953b9e27a158fc1a9455735ba58c88483158675
parent99182a3fe04c800d46df9a3063c57b34932bbc80 (diff)
downloadprometheus_node_collector-bd3e6d224cf1559c1c11992bbf1e0e73f46dce81.tar.bz2
prometheus_node_collector-bd3e6d224cf1559c1c11992bbf1e0e73f46dce81.tar.xz
prometheus_node_collector-bd3e6d224cf1559c1c11992bbf1e0e73f46dce81.zip
Add NodeTextFileCollectorScrapeError alert to mixin
Signed-off-by: Povilas Versockas <p.versockas@gmail.com>
-rw-r--r--docs/node-mixin/alerts/alerts.libsonnet17
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet
index 6c5ca57..caef02d 100644
--- a/docs/node-mixin/alerts/alerts.libsonnet
+++ b/docs/node-mixin/alerts/alerts.libsonnet
@@ -190,8 +190,21 @@
190 (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75 190 (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75
191 ||| % $._config, 191 ||| % $._config,
192 annotations: { 192 annotations: {
193 summary: 'Number of conntrack are getting close to the limit', 193 summary: 'Number of conntrack are getting close to the limit.',
194 description: '{{ $value | humanizePercentage }} of conntrack entries are used', 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.',
195 }, 208 },
196 labels: { 209 labels: {
197 severity: 'warning', 210 severity: 'warning',