httpcheck.conf 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
  2. template: httpcheck_web_service_up
  3. families: *
  4. on: httpcheck.status
  5. class: Utilization
  6. type: Web Server
  7. component: HTTP endpoint
  8. lookup: average -1m unaligned percentage of success
  9. calc: ($this < 75) ? (0) : ($this)
  10. every: 5s
  11. units: up/down
  12. info: HTTP endpoint ${label:url} liveness status
  13. to: silent
  14. template: httpcheck_web_service_bad_content
  15. families: *
  16. on: httpcheck.status
  17. class: Workload
  18. type: Web Server
  19. component: HTTP endpoint
  20. lookup: average -5m unaligned percentage of bad_content
  21. every: 10s
  22. units: %
  23. warn: $this >= 10 AND $this < 40
  24. crit: $this >= 40
  25. delay: down 5m multiplier 1.5 max 1h
  26. info: percentage of HTTP responses from ${label:url} with unexpected content in the last 5 minutes
  27. to: webmaster
  28. template: httpcheck_web_service_bad_status
  29. families: *
  30. on: httpcheck.status
  31. class: Workload
  32. type: Web Server
  33. component: HTTP endpoint
  34. lookup: average -5m unaligned percentage of bad_status
  35. every: 10s
  36. units: %
  37. warn: $this >= 10 AND $this < 40
  38. crit: $this >= 40
  39. delay: down 5m multiplier 1.5 max 1h
  40. info: percentage of HTTP responses from ${label:url} with unexpected status in the last 5 minutes
  41. to: webmaster
  42. template: httpcheck_web_service_timeouts
  43. families: *
  44. on: httpcheck.status
  45. class: Latency
  46. type: Web Server
  47. component: HTTP endpoint
  48. lookup: average -5m unaligned percentage of timeout
  49. every: 10s
  50. units: %
  51. warn: $this >= 10 AND $this < 40
  52. crit: $this >= 40
  53. delay: down 5m multiplier 1.5 max 1h
  54. info: percentage of timed-out HTTP requests to ${label:url} in the last 5 minutes
  55. to: webmaster
  56. template: httpcheck_web_service_no_connection
  57. families: *
  58. on: httpcheck.status
  59. class: Errors
  60. type: Other
  61. component: HTTP endpoint
  62. lookup: average -5m unaligned percentage of no_connection
  63. every: 10s
  64. units: %
  65. warn: $this >= 10 AND $this < 40
  66. crit: $this >= 40
  67. delay: down 5m multiplier 1.5 max 1h
  68. info: percentage of failed HTTP requests to ${label:url} in the last 5 minutes
  69. to: webmaster