aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbeorn7 <beorn@grafana.com>2019-07-16 21:40:57 +0200
committerbeorn7 <beorn@grafana.com>2019-07-16 21:40:57 +0200
commit3a770a0b1d988cc81fc1d1c25f994d3de4cb0af7 (patch)
tree99becc800ca644ebe7444baa999c520539e2b898 /docs
parenta92d1d7889ddcbaad50e821cb155795bf3e9758a (diff)
downloadprometheus_node_collector-3a770a0b1d988cc81fc1d1c25f994d3de4cb0af7.tar.bz2
prometheus_node_collector-3a770a0b1d988cc81fc1d1c25f994d3de4cb0af7.tar.xz
prometheus_node_collector-3a770a0b1d988cc81fc1d1c25f994d3de4cb0af7.zip
Convert annotations from message to summary/description
Signed-off-by: beorn7 <beorn@grafana.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/node-mixin/alerts/alerts.libsonnet46
1 files changed, 28 insertions, 18 deletions
diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet
index 76bbb03..7b9fb89 100644
--- a/docs/node-mixin/alerts/alerts.libsonnet
+++ b/docs/node-mixin/alerts/alerts.libsonnet
@@ -8,10 +8,10 @@
8 alert: 'NodeFilesystemSpaceFillingUp', 8 alert: 'NodeFilesystemSpaceFillingUp',
9 expr: ||| 9 expr: |||
10 ( 10 (
11 predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 24*60*60) < 0
12 and
13 node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} < 0.4 11 node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} < 0.4
14 and 12 and
13 predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 24*60*60) < 0
14 and
15 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 15 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
16 ) 16 )
17 ||| % $._config, 17 ||| % $._config,
@@ -20,17 +20,18 @@
20 severity: 'warning', 20 severity: 'warning',
21 }, 21 },
22 annotations: { 22 annotations: {
23 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} is predicted to run out of space within the next 24 hours.', 23 summary: 'Filesystem is predicted to run out of space within the next 24 hours.',
24 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left and is filling up.',
24 }, 25 },
25 }, 26 },
26 { 27 {
27 alert: 'NodeFilesystemSpaceFillingUp', 28 alert: 'NodeFilesystemSpaceFillingUp',
28 expr: ||| 29 expr: |||
29 ( 30 (
30 predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 4*60*60) < 0
31 and
32 node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} < 0.2 31 node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} < 0.2
33 and 32 and
33 predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 4*60*60) < 0
34 and
34 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 35 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
35 ) 36 )
36 ||| % $._config, 37 ||| % $._config,
@@ -39,7 +40,8 @@
39 severity: 'critical', 40 severity: 'critical',
40 }, 41 },
41 annotations: { 42 annotations: {
42 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} is predicted to run out of space within the next 4 hours.', 43 summary: 'Filesystem is predicted to run out of space within the next 4 hours.',
44 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left and is filling up fast.',
43 }, 45 },
44 }, 46 },
45 { 47 {
@@ -56,7 +58,8 @@
56 severity: 'warning', 58 severity: 'warning',
57 }, 59 },
58 annotations: { 60 annotations: {
59 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ $value }}% available space left.', 61 summary: 'Filesystem has less than 5% space left.',
62 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
60 }, 63 },
61 }, 64 },
62 { 65 {
@@ -73,17 +76,18 @@
73 severity: 'critical', 76 severity: 'critical',
74 }, 77 },
75 annotations: { 78 annotations: {
76 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ $value }}% available space left.', 79 summary: 'Filesystem has less than 3% space left.',
80 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
77 }, 81 },
78 }, 82 },
79 { 83 {
80 alert: 'NodeFilesystemFilesFillingUp', 84 alert: 'NodeFilesystemFilesFillingUp',
81 expr: ||| 85 expr: |||
82 ( 86 (
83 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 24*60*60) < 0
84 and
85 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s} < 0.4 87 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s} < 0.4
86 and 88 and
89 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 24*60*60) < 0
90 and
87 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 91 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
88 ) 92 )
89 ||| % $._config, 93 ||| % $._config,
@@ -92,17 +96,18 @@
92 severity: 'warning', 96 severity: 'warning',
93 }, 97 },
94 annotations: { 98 annotations: {
95 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} is predicted to run out of files within the next 24 hours.', 99 summary: 'Filesystem is predicted to run out of inodes within the next 24 hours.',
100 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left and is filling up.',
96 }, 101 },
97 }, 102 },
98 { 103 {
99 alert: 'NodeFilesystemFilesFillingUp', 104 alert: 'NodeFilesystemFilesFillingUp',
100 expr: ||| 105 expr: |||
101 ( 106 (
102 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 4*60*60) < 0
103 and
104 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s} < 0.2 107 node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s} < 0.2
105 and 108 and
109 predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s}[6h], 4*60*60) < 0
110 and
106 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 111 node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
107 ) 112 )
108 ||| % $._config, 113 ||| % $._config,
@@ -111,7 +116,8 @@
111 severity: 'critical', 116 severity: 'critical',
112 }, 117 },
113 annotations: { 118 annotations: {
114 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} is predicted to run out of files within the next 4 hours.', 119 summary: 'Filesystem is predicted to run out of inodes within the next 4 hours.',
120 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left and is filling up fast.',
115 }, 121 },
116 }, 122 },
117 { 123 {
@@ -128,7 +134,8 @@
128 severity: 'warning', 134 severity: 'warning',
129 }, 135 },
130 annotations: { 136 annotations: {
131 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ $value }}% available inodes left.', 137 summary: 'Filesystem has less than 5% inodes left.',
138 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left.',
132 }, 139 },
133 }, 140 },
134 { 141 {
@@ -145,7 +152,8 @@
145 severity: 'critical', 152 severity: 'critical',
146 }, 153 },
147 annotations: { 154 annotations: {
148 message: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ $value }}% available space left.', 155 summary: 'Filesystem has less than 3% inodes left.',
156 description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left.',
149 }, 157 },
150 }, 158 },
151 { 159 {
@@ -158,7 +166,8 @@
158 severity: 'warning', 166 severity: 'warning',
159 }, 167 },
160 annotations: { 168 annotations: {
161 message: '{{ $labels.instance }} interface {{ $labels.device }} shows errors while receiving packets ({{ $value }} errors in two minutes).', 169 summary: 'Network interface is reporting many receive errors.',
170 description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} receive errors in the last two minutes.',
162 }, 171 },
163 }, 172 },
164 { 173 {
@@ -171,7 +180,8 @@
171 severity: 'warning', 180 severity: 'warning',
172 }, 181 },
173 annotations: { 182 annotations: {
174 message: '{{ $labels.instance }} interface {{ $labels.device }} shows errors while transmitting packets ({{ $value }} errors in two minutes).', 183 summary: 'Network interface is reporting many transmit errors.',
184 description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} transmit errors in the last two minutes.',
175 }, 185 },
176 }, 186 },
177 ], 187 ],