EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus role
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-public
prometheus role
Commits
1130448b
Commit
1130448b
authored
2 years ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
added alerts and renamed dns check
parent
640dad6e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/core_alerts.yml
+8
-0
8 additions, 0 deletions
files/core_alerts.yml
templates/prometheus.yml.j2
+1
-1
1 addition, 1 deletion
templates/prometheus.yml.j2
with
9 additions
and
1 deletion
files/core_alerts.yml
+
8
−
0
View file @
1130448b
...
...
@@ -203,5 +203,13 @@ groups:
annotations
:
summary
:
"
Certificate
Test
failed
(instance
{{
$labels.instance
}})"
description
:
"
Certificate
Probe
Failed!
\n
VALUE
=
{{
$value
}}
\n
LABELS:
{{
$labels
}}"
-
alert
:
PostfixQueueNotEmpty
expr
:
topk(1, sum by (instance,le) (postfix_showq_message_age_seconds_bucket )> 0)
for
:
30m
labels
:
severity
:
warning
annotations
:
summary
:
"
Postfix
Queue
is
not
empty
on
(instance
{{
$labels.instance
}})"
description
:
"
Postfix
Queue
is
not
empty.
\n
VALUE=
{{
$value}}
\n
LABELS:
{{
$labels
}}"
This diff is collapsed.
Click to expand it.
templates/prometheus.yml.j2
+
1
−
1
View file @
1130448b
...
...
@@ -178,7 +178,7 @@ scrape_configs:
{% endif %}
{% if blackbox_monitoring.dns is defined %}
{% for domain in blackbox_monitoring.dns %}
- job_name: {{exporter}}_{{domain}}
- job_name: {{exporter}}_{{domain}}
_dns
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
...
...
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