redis.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. template: redis_connections_rejected
  3. families: *
  4. on: redis.connections
  5. class: Errors
  6. type: KV Storage
  7. component: Redis
  8. lookup: sum -1m unaligned of rejected
  9. every: 10s
  10. units: connections
  11. warn: $this > 0
  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. families: *
  17. on: redis.bgsave_health
  18. class: Errors
  19. type: KV Storage
  20. component: Redis
  21. every: 10s
  22. crit: $last_bgsave != nan AND $last_bgsave != 0
  23. units: ok/failed
  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. families: *
  29. on: redis.bgsave_now
  30. class: Latency
  31. type: KV Storage
  32. component: Redis
  33. every: 10s
  34. calc: $current_bgsave_time
  35. warn: $this > 600
  36. crit: $this > 1200
  37. units: seconds
  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. families: *
  43. on: redis.master_link_down_since_time
  44. class: Errors
  45. type: KV Storage
  46. component: Redis
  47. every: 10s
  48. calc: $time
  49. units: seconds
  50. crit: $this != nan AND $this > 0
  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