summaryrefslogtreecommitdiffstats
path: root/conf.d/health.d
diff options
context:
space:
mode:
authorEd Wade <ed@ecow.co.uk>2017-11-07 10:13:43 +0000
committerGitHub <noreply@github.com>2017-11-07 10:13:43 +0000
commitd703485f949fe1538b0b64700fbf3e8dcbd97a06 (patch)
treeb28fbb69560d93ed7de4f342e3685ad9812b09fe /conf.d/health.d
parentd8e1a9113f4bd11c0070dc26aa4147555c0c7fec (diff)
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
Diffstat (limited to 'conf.d/health.d')
-rw-r--r--conf.d/health.d/beanstalkd.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/conf.d/health.d/beanstalkd.conf b/conf.d/health.d/beanstalkd.conf
new file mode 100644
index 0000000000..420dbaaa5e
--- /dev/null
+++ b/conf.d/health.d/beanstalkd.conf
@@ -0,0 +1,33 @@
+# get the number of buried jobs in all queues
+
+template: buried_jobs
+ on: beanstalk.current_jobs
+ calc: $buried
+ units: jobs
+ every: 10s
+ warn: $this > 0
+ crit: $this > 10
+ info: the number of buried jobs aggregated across all tubes
+ to: sysadmin
+
+# get the number of buried jobs per queue
+
+#template: buried_jobs_per_tube
+# on: beanstalk.jobs
+# calc: $buried
+# units: jobs
+# every: 10s
+# warn: $this > 0
+# crit: $this > 10
+# info: the number of jobs buried per tube
+# to: sysadmin
+
+# get the current number of tubes
+
+#template: number_of_tubes
+# on: beanstalk.current_tubes
+# calc: $tubes
+# every: 10s
+# warn: $this < 5
+# info: the current number of tubes on the server
+# to: sysadmin