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
b0e178b3
Commit
b0e178b3
authored
5 years ago
by
S M Y
Committed by
rjshrjndrn
5 years ago
Browse files
Options
Download
Patches
Plain Diff
Alert Rules EMAIL Subject changes
parent
2a7aa524
sunbird-monitoring-release-3.5.0_RC1
sunbird-monitoring-release-3.3.0_RC1
sunbird-monitoring-release-2.6.0
sunbird-monitoring-release-2.6.0_RC6
sunbird-monitoring-release-2.6.0_RC5
sunbird-monitoring-release-2.6.0_RC4
sunbird-monitoring-release-2.6.0_RC3
sunbird-monitoring-release-2.6.0_RC2
sunbird-monitoring-release-2.6.0_RC1
sunbird-monitoring-release-2.5.0_484f884
sunbird-monitoring-release-2.5.0
sunbird-monitoring-release-2.5.0_RC3
sunbird-monitoring-release-2.5.0_RC2
sunbird-monitoring-release-2.5.0_RC1
sunbird-monitoring-release-2.3.0_9009005
sunbird-monitoring-release-2.3.0
sunbird-monitoring-release-2.3.0_RC4
sunbird-monitoring-release-2.3.0_RC3
sunbird-monitoring-release-2.3.0_RC2
sunbird-monitoring-release-2.3.0_RC1
sunbird-monitoring-release-2.2.0_RC1
secor-lag
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/stack-monitor/templates/alertmanagerconfig.yml
+6
-5
ansible/roles/stack-monitor/templates/alertmanagerconfig.yml
with
6 additions
and
5 deletions
+6
-5
ansible/roles/stack-monitor/templates/alertmanagerconfig.yml
+
6
−
5
View file @
b0e178b3
...
...
@@ -8,6 +8,7 @@ global:
route
:
receiver
:
'
devops_team'
group_by
:
[
'
alertname'
]
group_wait
:
30s
group_interval
:
1m
repeat_interval
:
4h
...
...
@@ -15,7 +16,7 @@ route:
-
receiver
:
slack
continue
:
true
{
%
for item in service_teams %
}
#
Dummy
comment line to ensure yaml generated from ansible template has proper indentation
# comment line to ensure yaml generated from ansible template has proper indentation
-
match_re
:
container_label_com_docker_swarm_service_name
:
"
{{
item.services
|
join('|')
}}"
receiver
:
"
{{
item.team
}}"
...
...
@@ -23,7 +24,7 @@ route:
service_name
:
"
{{
item.services
|
join('|')
}}"
receiver
:
"
{{
item.team
}}"
{
%
endfor %
}
#
Dummy
comment line to ensure yaml generated from ansible template has proper indentation
# comment line to ensure yaml generated from ansible template has proper indentation
-
match
:
owner
:
receiver
:
devops_team
...
...
@@ -35,15 +36,15 @@ receivers:
api_url
:
"
{{
monitor_alerts_slack_url
}}"
username
:
'
Monitor
-
Alerter'
channel
:
"
{{
monitor_alerts_slack_channel
}}"
text
:
"
Instances
:
{%
raw
%}{{range
.Alerts}}
\n
{{.Labels.nodename}}
:
{{.Annotations.description}}{{end}}{%
endraw
%}"
text
:
"
[{{
env
}}-{{cluster_name}}]
:
{%
raw
%}{{range
.Alerts}}
:
{{.Annotations.description}}{{end}}{%
endraw
%}"
icon_emoji
:
'
:dart:'
{
%
for item in service_teams %
}
#
Dummy
comment line to ensure yaml generated from ansible template has proper indentation
# comment line to ensure yaml generated from ansible template has proper indentation
-
name
:
"
{{
item.team
}}"
email_configs
:
-
send_resolved
:
true
to
:
'
{{
item.alerts_mailing_list
}}'
html
:
'
{%
raw
%}{{
template
"email.default.html"
.
}}{%
endraw
%}'
headers
:
subject
:
'
[{{
env
}}-{{cluster_name}}]
{
%
raw
%}{{
template
"email.default.subject"
.
}}{
%
end
raw
%
}'
subject
:
'
[{{
env
}}-{{cluster_name}}]
{
{range
.Alerts}}
:
{{.Annotations.summary
}}{
{
end
}
}'
{
%
endfor %
}
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