Commit 6fe21d20 authored by kaliraja.ramasamy's avatar kaliraja.ramasamy Committed by rjshrjndrn
Browse files

Feat #0000: added the alert rule for influx and redis

parent 5dad8211
No related merge requests found
Showing with 26 additions and 0 deletions
+26 -0
......@@ -121,3 +121,15 @@ groups:
annotations:
description: 'Number of running processes are: {% raw %}{{$value}}{% endraw %}'
summary: Druid middleManager process is not running
- alert: redisserver_process_not_running
expr: namedprocess_namegroup_states{groupname="redis-server",state="Sleeping"} < 1
for: 1m
annotations:
description: 'Number of running processes are: {% raw %}{{$value}}{% endraw %}'
summary: redis-server process is not running
- alert: influxdb_process_not_running
expr: namedprocess_namegroup_states{groupname="influxd",state="Sleeping"} < 1
for: 1m
annotations:
description: 'Number of running processes are: {% raw %}{{$value}}{% endraw %}'
summary: influxdb process is not running
......@@ -125,3 +125,17 @@ process_names:
cmdline:
- .+middleManager.+
{% endif %}
{% if 'redis-ps' in group_names and hostvars[inventory_hostname]['ansible_default_ipv4']['address'] in groups['redis-ps'] %}
- name: "redis-server"
comm:
- redis-server
cmdline:
- .+redis-server.+
{% endif %}
{% if 'influxdb-ps' in group_names and hostvars[inventory_hostname]['ansible_default_ipv4']['address'] in groups['influxdb-ps'] %}
- name: "influxd"
comm:
- influxd
cmdline:
- .+influxd.+
{% endif %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment