Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Picasoft
Technique
Dockerfiles
Commits
5733e515
Verified
Commit
5733e515
authored
Sep 03, 2021
by
Quentin Duchemin
Browse files
Alertmanager can send to Postfix dashboard when probing is unsuccessful
parent
af092068
Changes
1
Hide whitespace changes
Inline
Side-by-side
pica-metrologie/vmalert-rules.yml
View file @
5733e515
...
...
@@ -198,7 +198,7 @@ groups:
summary
:
"
Service
down"
description
:
"
{{
$labels.instance
}}
is
down
for
more
than
2
minutes"
# Redirect to HTTP or DNS dashboard based on vmagent job name
dashboard
:
'
{{
if
eq
$labels.job
"blackbox-http"
-}}https://grafana.picasoft.net/d/8BOa8W47z/services-web?var-instance={{
$labels.instance
}}{{-
else
if
eq
$labels.job
"blackbox-dns"
-}}https://grafana.picasoft.net/d/1twteMV7k/serveurs-dns?var-instance={{
$labels.instance
}}{{-
end
-}}'
dashboard
:
'
{{
if
eq
$labels.job
"blackbox-http"
-}}https://grafana.picasoft.net/d/8BOa8W47z/services-web?var-instance={{
$labels.instance
}}{{-
else
if
eq
$labels.job
"blackbox-dns"
-}}https://grafana.picasoft.net/d/1twteMV7k/serveurs-dns?var-instance={{
$labels.instance
}}{{-
else
if
eq
$labels.job
"blackbox-mail"
-}}https://grafana.picasoft.net/d/VB5CUrn7k/postfix{{-
end
-}}'
-
alert
:
PostfixRejection
# As a test, alert when there is any rejection. If too much alert we will raise the threshold
expr
:
rate(postfix_smtpd_messages_rejected_total[5m]) >
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment