diff options
author | Povilas Versockas <p.versockas@gmail.com> | 2020-03-31 18:09:08 +0300 |
---|---|---|
committer | Povilas Versockas <p.versockas@gmail.com> | 2020-03-31 18:12:36 +0300 |
commit | bd3e6d224cf1559c1c11992bbf1e0e73f46dce81 (patch) | |
tree | e953b9e27a158fc1a9455735ba58c88483158675 | |
parent | 99182a3fe04c800d46df9a3063c57b34932bbc80 (diff) | |
download | prometheus_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.libsonnet | 17 |
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', |