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
6815998a
Commit
6815998a
authored
5 years ago
by
S M Y
Browse files
Options
Download
Patches
Plain Diff
Adding alertrule to detect uneven replicas
parent
758021c8
sunbird-monitoring-release-2.2.0
sunbird-monitoring-release-2.2.0_aa4568b
sunbird-monitoring-release-2.1.0
sunbird-monitoring-release-2.1.0_RC1
monitoring-fixes
loadtest
fixed-monitoring
before-categorisation
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-monitor-stateful/templates/alertrules.task.yml
+8
-0
...oles/stack-monitor-stateful/templates/alertrules.task.yml
with
8 additions
and
0 deletions
+8
-0
ansible/roles/stack-monitor-stateful/templates/alertrules.task.yml
+
8
−
0
View file @
6815998a
...
...
@@ -14,3 +14,11 @@ groups:
annotations
:
description
:
'
{%
raw
%}{{
$labels.container_label_com_docker_swarm_task_name
}}{%
endraw
%}
is
using
{%
raw
%}{{
$value
}}{%
endraw
%}%
memory.
Threshold
is
:
{{
container_memory_usage_percentage_theshold
}}
%'
summary
:
'
HIGH
MEMORY
USAGE
WARNING:
TASK
{%
raw
%}{{
$labels.container_label_com_docker_swarm_task_name
}}{%
endraw
%}
on
{%
raw
%}{{
$labels.instance
}}{%
endraw
%}'
-
alert
:
replicas_uneven
expr
:
sum by (service_name) (docker_service_replicas_expected != docker_service_replicas_running)
for
:
1m
annotations
:
description
:
'
UNEVEN
REPLICAS
COUNT
FOR
{%
raw
%}{{
$labels.service_name
}}{%
endraw
%}'
summary
:
'
UNEVEN
REPLICAS
COUNT:
{%
raw
%}{{
$labels.service_name
}}{%
endraw
%}
is
having
uneven
count'
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