Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
6fe21d20
Commit
6fe21d20
authored
5 years ago
by
kaliraja.ramasamy
Committed by
rjshrjndrn
5 years ago
Browse files
Options
Download
Patches
Plain Diff
Feat #0000: added the alert rule for influx and redis
parent
5dad8211
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/stack-monitor-stateful/templates/alertrules.process.yml
+12
-0
...s/stack-monitor-stateful/templates/alertrules.process.yml
ansible/roles/vm-agents-processexporter/templates/config.j2
+14
-0
ansible/roles/vm-agents-processexporter/templates/config.j2
with
26 additions
and
0 deletions
+26
-0
ansible/roles/stack-monitor-stateful/templates/alertrules.process.yml
+
12
−
0
View file @
6fe21d20
...
...
@@ -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
This diff is collapsed.
Click to expand it.
ansible/roles/vm-agents-processexporter/templates/config.j2
+
14
−
0
View file @
6fe21d20
...
...
@@ -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 %}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets