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