diff options
author | Kyle Agronick <agronick@gmail.com> | 2019-09-17 06:34:08 -0400 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-17 12:34:08 +0200 |
commit | 9c256c81189af3f95d186c207689b8d206d1e225 (patch) | |
tree | 81f6a3750e6e790139f5fd672ae3df70d66a7e4c /health | |
parent | cd5c8c00dac712554c33c959b6891f87175d452b (diff) |
Gearman plugin for Netdata (#6567)
Added Gearman plugin and alarms
Diffstat (limited to 'health')
-rw-r--r-- | health/Makefile.am | 1 | ||||
-rw-r--r-- | health/health.d/gearman.conf | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am index e9fceddb79..383696ef64 100644 --- a/health/Makefile.am +++ b/health/Makefile.am @@ -42,6 +42,7 @@ dist_healthconfig_DATA = \ health.d/fping.conf \ health.d/ioping.conf \ health.d/fronius.conf \ + health.d/gearman.conf \ health.d/haproxy.conf \ health.d/httpcheck.conf \ health.d/ipc.conf \ diff --git a/health/health.d/gearman.conf b/health/health.d/gearman.conf new file mode 100644 index 0000000000..e3863ae5e2 --- /dev/null +++ b/health/health.d/gearman.conf @@ -0,0 +1,22 @@ +# make sure Gearman is running +template: gearman_last_collected_secs + on: gearman.total_jobs + calc: $now - $last_collected_t + units: seconds ago + every: 10s + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) + delay: down 5m multiplier 1.5 max 1h + info: number of seconds since the last successful data collection + to: sysadmin + +template: gearman_workers_queued + on: gearman.single_job + lookup: average -10m unaligned match-names of Queued + units: workers + every: 10s + warn: $this > 30000 + crit: $this > 100000 + delay: down 5m multiplier 1.5 max 1h + info: number of queued jobs + to: sysadmin
\ No newline at end of file |