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
ec5c20c5
Commit
ec5c20c5
authored
5 years ago
by
S M Y
Browse files
Options
Download
Patches
Plain Diff
core services Health checks
parent
af5dc81d
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/stack-monitor/defaults/main.yml
+13
-5
ansible/roles/stack-monitor/defaults/main.yml
ansible/roles/stack-monitor/templates/alertrules.task.yml
+1
-1
ansible/roles/stack-monitor/templates/alertrules.task.yml
with
14 additions
and
6 deletions
+14
-6
ansible/roles/stack-monitor/defaults/main.yml
+
13
−
5
View file @
ec5c20c5
...
...
@@ -120,6 +120,18 @@ service_blackbox_checks:
probe_module
:
http_2xx
targets
:
-
http://adminutil_adminutil:4000/health
-
service_name
:
'
player_player'
probe_module
:
http_2xx
targets
:
-
http://player_player:3000/service/health
-
service_name
:
'
learner-service'
probe_module
:
http_2xx
targets
:
-
http://learner-service:9000/service/health
-
service_name
:
'
api-manager_kong'
probe_module
:
http_2xx
targets
:
-
http://api-manager_kong:8001/status
-
service_name
:
'
api-manager_echo'
probe_module
:
http_2xx
targets
:
...
...
@@ -136,14 +148,10 @@ service_blackbox_checks:
probe_module
:
http_2xx
targets
:
-
"
{{sunbird_content_repo_api_base_url}}/health"
-
service_name
:
'
player_player'
probe_module
:
http_2xx
targets
:
-
"
http://player_player:3000"
-
service_name
:
'
content-service'
probe_module
:
http_2xx
targets
:
-
http://content-service:5000/health
-
http://content-service:5000/
service/
health
-
service_name
:
'
monit'
probe_module
:
http_2xx
targets
:
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/stack-monitor/templates/alertrules.task.yml
+
1
−
1
View file @
ec5c20c5
...
...
@@ -18,7 +18,7 @@ groups:
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
:
(docker_service_replicas_expected != docker_service_replicas_running)
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
%}'
...
...
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