Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
7ce72400
Commit
7ce72400
authored
3 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
[Blackbox] Alert when DNS resolvers seem down
parent
216a8f87
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pica-metrologie/vmalert-rules.yml
+9
-0
9 additions, 0 deletions
pica-metrologie/vmalert-rules.yml
with
9 additions
and
0 deletions
pica-metrologie/vmalert-rules.yml
+
9
−
0
View file @
7ce72400
...
...
@@ -199,6 +199,15 @@ groups:
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
}}{{-
else
if
eq
$labels.job
"blackbox-mail"
-}}https://grafana.picasoft.net/d/VB5CUrn7k/postfix{{-
end
-}}'
-
alert
:
BlackboxDNSResolutionFailed
expr
:
probe_http_duration_seconds{phase="resolve"} >
5
for
:
"
5m"
labels
:
severity
:
warning
annotations
:
summary
:
"
DNS
resolver
seems
down"
description
:
"
Taking
too
much
time
to
resolve
{{
$labels.instance
}}.
Check
the
health
of
DNS
resolvers
on
the
monitoring
machine."
dashboard
:
'
https://grafana.picasoft.net/d/8BOa8W47z/services-web?var-instance={{
$labels.instance
}}'
-
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]) >
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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