Skip to content

Commit

Permalink
updating to add redis cluster alerts to redis mixin (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinez3 committed Aug 10, 2022
1 parent 86d72c5 commit d839e3d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions contrib/redis-mixin/alerts/redis.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,42 @@
description: 'Redis instance has too many connections\n VALUE = {{ $value }}\n LABELS: {{ $labels }}',
},
},
{
alert: 'RedisClusterSlotFail',
expr: 'redis_cluster_slots_fail{%(redisExporterSelector)s} > 0' % $._config,
'for': '5m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Number of hash slots mapping to a node in FAIL state (instance {{ $labels.instance }})',
description: 'Redis cluste has slots fail\n VALUE = {{ $value }}\n LABELS: {{ $labels }}',
},
},
{
alert: 'RedisClusterSlotPfail',
expr: 'redis_cluster_slots_pfail{%(redisExporterSelector)s} > 0' % $._config,
'for': '5m',
labels: {
severity: 'warning',
},
annotations: {
summary: 'Number of hash slots mapping to a node in PFAIL state (instance {{ $labels.instance }})',
description: 'Redis cluste has slots pfail\n VALUE = {{ $value }}\n LABELS: {{ $labels }}',
},
},
{
alert: 'RedisClusterStateNotOk',
expr: 'redis_cluster_state{%(redisExporterSelector)s} == 0' % $._config,
'for': '5m',
labels: {
severity: 'critical',
},
annotations: {
summary: 'Redis cluster state is not ok (instance {{ $labels.instance }})',
description: 'Redis cluster is not ok\n VALUE = {{ $value }}\n LABELS: {{ $labels }}',
},
},
],
},
],
Expand Down

0 comments on commit d839e3d

Please sign in to comment.