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
40677bff
Commit
40677bff
authored
1 year ago
by
Nicolas Baudoin
Browse files
Options
Downloads
Patches
Plain Diff
Many changes for Prometheus_Faster_DNS that haven't been committed yet.
parent
50ad9826
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+8
-0
8 additions, 0 deletions
tasks/main.yml
tasks/non_federator.yml
+1
-0
1 addition, 0 deletions
tasks/non_federator.yml
templates/prometheus.yml.j2
+12
-1
12 additions, 1 deletion
templates/prometheus.yml.j2
with
23 additions
and
1 deletion
defaults/main.yml
+
2
−
0
View file @
40677bff
...
...
@@ -10,3 +10,5 @@ prometheus_federators: []
prometheus_federator
:
False
backup_prometheus
:
True
use_service_vrf
:
False
prometheus_config_method
:
"
dns"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
8
−
0
View file @
40677bff
...
...
@@ -46,3 +46,11 @@
backup_path
:
'
/var/lib/prometheus'
tags
:
backup
when
:
backup_prometheus == True
-
import_role
:
name
:
label
vars
:
label
:
name
:
prometheus
description
:
'
Prometheus
server'
tags
:
label
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tasks/non_federator.yml
+
1
−
0
View file @
40677bff
...
...
@@ -17,6 +17,7 @@
-
'
postfix'
-
'
legacy'
-
'
fail2ban'
when
:
prometheus_config_method == "file"
tags
:
target_yml
-
name
:
core alerts
...
...
This diff is collapsed.
Click to expand it.
templates/prometheus.yml.j2
+
12
−
1
View file @
40677bff
...
...
@@ -89,7 +89,18 @@ scrape_configs:
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
file_sd_configs:
- files:
- 'fail2ban.yml'
- 'fail2ban.yml'
- job_name: pct
scheme: https
tls_config:
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
dns_sd_configs:
- names:
- 'pct.dc1.eox.at'
type: 'SRV'
refresh_interval: 1m
{% if groups['lxc_host'] is defined %}
...
...
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