Create beanstalkd.conf
Add a default alarm to check for buried jobs in all tubes Add disabled alarms for buried jobs per tube Add disabled alarms for total number of tubes on the server
Ed Wade committed
Nov 7, 2017 at 10:13 UTC
d703485f949fe1538b0b64700fbf3e8dcbd97a06
1 file changed
+33
conf.d/health.d/beanstalkd.conf
new
+33
@@ -0,0 +1,33 @@
1
+# get the number of buried jobs in all queues
2
+
3
+template: buried_jobs
4
+ on: beanstalk.current_jobs
5
+ calc: $buried
6
+ units: jobs
7
+ every: 10s
8
+ warn: $this > 0
9
+ crit: $this > 10
10
+ info: the number of buried jobs aggregated across all tubes
11
+ to: sysadmin
12
+
13
+# get the number of buried jobs per queue
14
+
15
+#template: buried_jobs_per_tube
16
+# on: beanstalk.jobs
17
+# calc: $buried
18
+# units: jobs
19
+# every: 10s
20
+# warn: $this > 0
21
+# crit: $this > 10
22
+# info: the number of jobs buried per tube
23
+# to: sysadmin
24
+
25
+# get the current number of tubes
26
+
27
+#template: number_of_tubes
28
+# on: beanstalk.current_tubes
29
+# calc: $tubes
30
+# every: 10s
31
+# warn: $this < 5
32
+# info: the current number of tubes on the server
33
+# to: sysadmin