httpcheck.conf 2.1 KB

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