EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit a26af92c authored by Karl Grube's avatar Karl Grube
Browse files

prometheus client certificates

parent 20770a48
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
name: prometheus
state: started
enabled: yes
- name: promtheus template
- name: prometheus template
template:
src: prometheus.yml.j2
dest: /etc/prometheus/prometheus.yml
......
......@@ -43,6 +43,15 @@ scrape_configs:
static_configs:
- targets: ['localhost:9100']
- job_name: dns_scrape
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/{{ansible_fqdn}}.crt'
key_file: '/etc/ssl/prometheus_client/{{ansible_fqdn}}.key'
dns_sd_configs:
- names:
- '{{datacenter}}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment