redis.conf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. template: redis_connections_rejected
  3. on: redis.connections
  4. class: Errors
  5. type: KV Storage
  6. component: Redis
  7. lookup: sum -1m unaligned of rejected
  8. every: 10s
  9. units: connections
  10. warn: $this > 0
  11. summary: Redis rejected connections
  12. info: Connections rejected because of maxclients limit in the last minute
  13. delay: down 5m multiplier 1.5 max 1h
  14. to: dba
  15. template: redis_bgsave_broken
  16. on: redis.bgsave_health
  17. class: Errors
  18. type: KV Storage
  19. component: Redis
  20. every: 10s
  21. crit: $last_bgsave != nan AND $last_bgsave != 0
  22. units: ok/failed
  23. summary: Redis background save
  24. info: Status of the last RDB save operation (0: ok, 1: error)
  25. delay: down 5m multiplier 1.5 max 1h
  26. to: dba
  27. template: redis_bgsave_slow
  28. on: redis.bgsave_now
  29. class: Latency
  30. type: KV Storage
  31. component: Redis
  32. every: 10s
  33. calc: $current_bgsave_time
  34. warn: $this > 600
  35. crit: $this > 1200
  36. units: seconds
  37. summary: Redis slow background save
  38. info: Duration of the on-going RDB save operation
  39. delay: down 5m multiplier 1.5 max 1h
  40. to: dba
  41. template: redis_master_link_down
  42. on: redis.master_link_down_since_time
  43. class: Errors
  44. type: KV Storage
  45. component: Redis
  46. every: 10s
  47. calc: $time
  48. units: seconds
  49. crit: $this != nan AND $this > 0
  50. summary: Redis master link down
  51. info: Time elapsed since the link between master and slave is down
  52. delay: down 5m multiplier 1.5 max 1h
  53. to: dba