beanstalkd.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # get the number of buried jobs in all queues
  2. template: beanstalk_server_buried_jobs
  3. on: beanstalk.current_jobs
  4. class: Workload
  5. type: Messaging
  6. component: Beanstalk
  7. calc: $buried
  8. units: jobs
  9. every: 10s
  10. warn: $this > 0
  11. crit: $this > 10
  12. delay: up 0 down 5m multiplier 1.2 max 1h
  13. info: number of buried jobs across all tubes. \
  14. You need to manually kick them so they can be processed. \
  15. Presence of buried jobs in a tube does not affect new jobs.
  16. to: sysadmin
  17. # get the number of buried jobs per queue
  18. #template: beanstalk_tube_buried_jobs
  19. # on: beanstalk.jobs
  20. # calc: $buried
  21. # units: jobs
  22. # every: 10s
  23. # warn: $this > 0
  24. # crit: $this > 10
  25. # delay: up 0 down 5m multiplier 1.2 max 1h
  26. # info: the number of jobs buried per tube
  27. # to: sysadmin
  28. # get the current number of tubes
  29. #template: beanstalk_number_of_tubes
  30. # on: beanstalk.current_tubes
  31. # calc: $tubes
  32. # every: 10s
  33. # warn: $this < 5
  34. # delay: up 0 down 5m multiplier 1.2 max 1h
  35. # info: the current number of tubes on the server
  36. # to: sysadmin