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
7f6b980d
Commit
7f6b980d
authored
2 years ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
lxc_hosts as separate category
parent
fb3e6614
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/prometheus.yml.j2
+17
-1
17 additions, 1 deletion
templates/prometheus.yml.j2
with
17 additions
and
1 deletion
templates/prometheus.yml.j2
+
17
−
1
View file @
7f6b980d
...
...
@@ -33,7 +33,23 @@ scrape_configs:
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
{% if groups['lxc_host'] is defined %}
- job_name: lxc_host
scheme: https
tls_config:
# Prometheus will check that the node_exporter presents a certificate
# signed by this ca.
ca_file: '/etc/ssl/prometheus_client/root.ca.crt'
# The cert and key are presented to node_exporter to authenticate
# Prometheus as a client.
cert_file: '/etc/ssl/prometheus_client/{{fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
static_configs:
- targets:
{% for host in groups['lxc_host'] %}
- '{{host}}:9100'
{% endfor %}
{% endif %}
- job_name: dns_scrape
scheme: https
tls_config:
...
...
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