health/vernemq: use `average` instead of `sum` (#11037)
Ilya Mashchenko committed
Apr 26, 2021 at 15:19 UTC
ac92f8c910ba79ecb0f3ee03727d336996fa664b
1 file changed
+45
-45
health/health.d/vernemq.conf
+45
-45
@@ -37,11 +37,11 @@ component: VerneMQ
37
class: Messaging
38
component: VerneMQ
39
type: Errors
40
- lookup: sum -1m unaligned absolute of queue_message_drop
40
+ lookup: average -1m unaligned absolute of queue_message_drop
41
units: dropped messages
42
every: 1m
43
warn: $this > (($status >= $WARNING) ? (0) : (5))
44
- delay: up 5m down 5m multiplier 1.5 max 2h
44
+ delay: up 2m down 5m multiplier 1.5 max 2h
45
info: number of dropped messaged due to full queues in the last minute
46
to: sysadmin
47
@@ -50,11 +50,11 @@ component: VerneMQ
50
class: Messaging
51
component: VerneMQ
52
type: Latency
53
- lookup: sum -1m unaligned absolute of queue_message_expired
53
+ lookup: average -1m unaligned absolute of queue_message_expired
54
units: expired messages
55
every: 1m
56
- warn: $this > (($status >= $WARNING) ? (0) : (15))
57
- delay: up 5m down 5m multiplier 1.5 max 2h
56
+ warn: $this > (($status >= $WARNING) ? (0) : (5))
57
+ delay: up 2m down 5m multiplier 1.5 max 2h
58
info: number of messages which expired before delivery in the last minute
59
to: sysadmin
60
@@ -63,11 +63,11 @@ component: VerneMQ
63
class: Messaging
64
component: VerneMQ
65
type: Latency
66
- lookup: sum -1m unaligned absolute of queue_message_unhandled
66
+ lookup: average -1m unaligned absolute of queue_message_unhandled
67
units: unhandled messages
68
every: 1m
69
warn: $this > (($status >= $WARNING) ? (0) : (5))
70
- delay: up 5m down 5m multiplier 1.5 max 2h
70
+ delay: up 2m down 5m multiplier 1.5 max 2h
71
info: number of unhandled messages (connections with clean session=true) in the last minute
72
to: sysadmin
73
@@ -122,11 +122,11 @@ component: VerneMQ
122
class: Messaging
123
component: VerneMQ
124
type: Errors
125
- lookup: sum -1m unaligned absolute match-names of !success,*
125
+ lookup: average -1m unaligned absolute match-names of !success,*
126
units: packets
127
every: 1m
128
warn: $this > (($status >= $WARNING) ? (0) : (5))
129
- delay: up 5m down 5m multiplier 1.5 max 2h
129
+ delay: up 2m down 5m multiplier 1.5 max 2h
130
info: number of sent unsuccessful v3/v5 CONNACK packets in the last minute
131
to: sysadmin
132
@@ -137,11 +137,11 @@ component: VerneMQ
137
class: Messaging
138
component: VerneMQ
139
type: Workload
140
- lookup: sum -1m unaligned absolute match-names of !normal_disconnect,*
140
+ lookup: average -1m unaligned absolute match-names of !normal_disconnect,*
141
units: packets
142
every: 1m
143
warn: $this > (($status >= $WARNING) ? (0) : (5))
144
- delay: up 5m down 5m multiplier 1.5 max 2h
144
+ delay: up 2m down 5m multiplier 1.5 max 2h
145
info: number of received not normal v5 DISCONNECT packets in the last minute
146
to: sysadmin
147
@@ -150,11 +150,11 @@ component: VerneMQ
150
class: Messaging
151
component: VerneMQ
152
type: Errors
153
- lookup: sum -1m unaligned absolute match-names of !normal_disconnect,*
153
+ lookup: average -1m unaligned absolute match-names of !normal_disconnect,*
154
units: packets
155
every: 1m
156
warn: $this > (($status >= $WARNING) ? (0) : (5))
157
- delay: up 5m down 5m multiplier 1.5 max 2h
157
+ delay: up 2m down 5m multiplier 1.5 max 2h
158
info: number of sent not normal v5 DISCONNECT packets in the last minute
159
to: sysadmin
160
@@ -165,11 +165,11 @@ component: VerneMQ
165
class: Messaging
166
component: VerneMQ
167
type: Errors
168
- lookup: sum -1m unaligned absolute
168
+ lookup: average -1m unaligned absolute
169
units: failed ops
170
every: 1m
171
warn: $this > (($status >= $WARNING) ? (0) : (5))
172
- delay: up 5m down 5m multiplier 1.5 max 2h
172
+ delay: up 2m down 5m multiplier 1.5 max 2h
173
info: number of failed v3/v5 SUBSCRIBE operations in the last minute
174
to: sysadmin
175
@@ -178,11 +178,11 @@ component: VerneMQ
178
class: Messaging
179
component: VerneMQ
180
type: Workload
181
- lookup: sum -1m unaligned absolute
181
+ lookup: average -1m unaligned absolute
182
units: attempts
183
every: 1m
184
warn: $this > (($status >= $WARNING) ? (0) : (5))
185
- delay: up 5m down 5m multiplier 1.5 max 2h
185
+ delay: up 2m down 5m multiplier 1.5 max 2h
186
info: number of unauthorized v3/v5 SUBSCRIBE attempts in the last minute
187
to: sysadmin
188
@@ -193,11 +193,11 @@ component: VerneMQ
193
class: Messaging
194
component: VerneMQ
195
type: Errors
196
- lookup: sum -1m unaligned absolute
196
+ lookup: average -1m unaligned absolute
197
units: failed ops
198
every: 1m
199
warn: $this > (($status >= $WARNING) ? (0) : (5))
200
- delay: up 5m down 5m multiplier 1.5 max 2h
200
+ delay: up 2m down 5m multiplier 1.5 max 2h
201
info: number of failed v3/v5 UNSUBSCRIBE operations in the last minute
202
to: sysadmin
203
@@ -208,11 +208,11 @@ component: VerneMQ
208
class: Messaging
209
component: VerneMQ
210
type: Errors
211
- lookup: sum -1m unaligned absolute
211
+ lookup: average -1m unaligned absolute
212
units: failed ops
213
every: 1m
214
warn: $this > (($status >= $WARNING) ? (0) : (5))
215
- delay: up 5m down 5m multiplier 1.5 max 2h
215
+ delay: up 2m down 5m multiplier 1.5 max 2h
216
info: number of failed v3/v5 PUBLISH operations in the last minute
217
to: sysadmin
218
@@ -221,11 +221,11 @@ component: VerneMQ
221
class: Messaging
222
component: VerneMQ
223
type: Workload
224
- lookup: sum -1m unaligned absolute
224
+ lookup: average -1m unaligned absolute
225
units: attempts
226
every: 1m
227
warn: $this > (($status >= $WARNING) ? (0) : (5))
228
- delay: up 5m down 5m multiplier 1.5 max 2h
228
+ delay: up 2m down 5m multiplier 1.5 max 2h
229
info: number of unauthorized v3/v5 PUBLISH attempts in the last minute
230
to: sysadmin
231
@@ -236,11 +236,11 @@ component: VerneMQ
236
class: Messaging
237
component: VerneMQ
238
type: Errors
239
- lookup: sum -1m unaligned absolute match-names of !success,*
239
+ lookup: average -1m unaligned absolute match-names of !success,*
240
units: packets
241
every: 1m
242
warn: $this > (($status >= $WARNING) ? (0) : (5))
243
- delay: up 5m down 5m multiplier 1.5 max 2h
243
+ delay: up 2m down 5m multiplier 1.5 max 2h
244
info: number of received unsuccessful v5 PUBACK packets in the last minute
245
to: sysadmin
246
@@ -249,11 +249,11 @@ component: VerneMQ
249
class: Messaging
250
component: VerneMQ
251
type: Errors
252
- lookup: sum -1m unaligned absolute match-names of !success,*
252
+ lookup: average -1m unaligned absolute match-names of !success,*
253
units: packets
254
every: 1m
255
warn: $this > (($status >= $WARNING) ? (0) : (5))
256
- delay: up 5m down 5m multiplier 1.5 max 2h
256
+ delay: up 2m down 5m multiplier 1.5 max 2h
257
info: number of sent unsuccessful v5 PUBACK packets in the last minute
258
to: sysadmin
259
@@ -262,11 +262,11 @@ component: VerneMQ
262
class: Messaging
263
component: VerneMQ
264
type: Workload
265
- lookup: sum -1m unaligned absolute
265
+ lookup: average -1m unaligned absolute
266
units: messages
267
every: 1m
268
warn: $this > (($status >= $WARNING) ? (0) : (5))
269
- delay: up 5m down 5m multiplier 1.5 max 2h
269
+ delay: up 2m down 5m multiplier 1.5 max 2h
270
info: number of received unexpected v3/v5 PUBACK packets in the last minute
271
to: sysadmin
272
@@ -277,11 +277,11 @@ component: VerneMQ
277
class: Messaging
278
component: VerneMQ
279
type: Errors
280
- lookup: sum -1m unaligned absolute match-names of !success,*
280
+ lookup: average -1m unaligned absolute match-names of !success,*
281
units: packets
282
every: 1m
283
warn: $this > (($status >= $WARNING) ? (0) : (5))
284
- delay: up 5m down 5m multiplier 1.5 max 2h
284
+ delay: up 2m down 5m multiplier 1.5 max 2h
285
info: number of received unsuccessful v5 PUBREC packets in the last minute
286
to: sysadmin
287
@@ -290,11 +290,11 @@ component: VerneMQ
290
class: Messaging
291
component: VerneMQ
292
type: Errors
293
- lookup: sum -1m unaligned absolute match-names of !success,*
293
+ lookup: average -1m unaligned absolute match-names of !success,*
294
units: packets
295
every: 1m
296
warn: $this > (($status >= $WARNING) ? (0) : (5))
297
- delay: up 5m down 5m multiplier 1.5 max 2h
297
+ delay: up 2m down 5m multiplier 1.5 max 2h
298
info: number of sent unsuccessful v5 PUBREC packets in the last minute
299
to: sysadmin
300
@@ -303,11 +303,11 @@ component: VerneMQ
303
class: Messaging
304
component: VerneMQ
305
type: Workload
306
- lookup: sum -1m unaligned absolute
306
+ lookup: average -1m unaligned absolute
307
units: messages
308
every: 1m
309
warn: $this > (($status >= $WARNING) ? (0) : (5))
310
- delay: up 5m down 5m multiplier 1.5 max 2h
310
+ delay: up 2m down 5m multiplier 1.5 max 2h
311
info: number of received unexpected v3 PUBREC packets in the last minute
312
to: sysadmin
313
@@ -318,11 +318,11 @@ component: VerneMQ
318
class: Messaging
319
component: VerneMQ
320
type: Errors
321
- lookup: sum -1m unaligned absolute match-names of !success,*
321
+ lookup: average -1m unaligned absolute match-names of !success,*
322
units: packets
323
every: 1m
324
warn: $this > (($status >= $WARNING) ? (0) : (5))
325
- delay: up 5m down 5m multiplier 1.5 max 2h
325
+ delay: up 2m down 5m multiplier 1.5 max 2h
326
info: number of received unsuccessful v5 PUBREL packets in the last minute
327
to: sysadmin
328
@@ -331,11 +331,11 @@ component: VerneMQ
331
class: Messaging
332
component: VerneMQ
333
type: Errors
334
- lookup: sum -1m unaligned absolute match-names of !success,*
334
+ lookup: average -1m unaligned absolute match-names of !success,*
335
units: packets
336
every: 1m
337
warn: $this > (($status >= $WARNING) ? (0) : (5))
338
- delay: up 5m down 5m multiplier 1.5 max 2h
338
+ delay: up 2m down 5m multiplier 1.5 max 2h
339
info: number of sent unsuccessful v5 PUBREL packets in the last minute
340
to: sysadmin
341
@@ -346,11 +346,11 @@ component: VerneMQ
346
class: Messaging
347
component: VerneMQ
348
type: Errors
349
- lookup: sum -1m unaligned absolute match-names of !success,*
349
+ lookup: average -1m unaligned absolute match-names of !success,*
350
units: packets
351
every: 1m
352
warn: $this > (($status >= $WARNING) ? (0) : (5))
353
- delay: up 5m down 5m multiplier 1.5 max 2h
353
+ delay: up 2m down 5m multiplier 1.5 max 2h
354
info: number of received unsuccessful v5 PUBCOMP packets in the last minute
355
to: sysadmin
356
@@ -359,11 +359,11 @@ component: VerneMQ
359
class: Messaging
360
component: VerneMQ
361
type: Errors
362
- lookup: sum -1m unaligned absolute match-names of !success,*
362
+ lookup: average -1m unaligned absolute match-names of !success,*
363
units: packets
364
every: 1m
365
warn: $this > (($status >= $WARNING) ? (0) : (5))
366
- delay: up 5m down 5m multiplier 1.5 max 2h
366
+ delay: up 2m down 5m multiplier 1.5 max 2h
367
info: number of sent unsuccessful v5 PUBCOMP packets in the last minute
368
to: sysadmin
369
@@ -372,10 +372,10 @@ component: VerneMQ
372
class: Messaging
373
component: VerneMQ
374
type: Workload
375
- lookup: sum -1m unaligned absolute
375
+ lookup: average -1m unaligned absolute
376
units: messages
377
every: 1m
378
warn: $this > (($status >= $WARNING) ? (0) : (5))
379
- delay: up 5m down 5m multiplier 1.5 max 2h
379
+ delay: up 2m down 5m multiplier 1.5 max 2h
380
info: number of received unexpected v3/v5 PUBCOMP packets in the last minute
381
to: sysadmin