diff --git a/roles/prometheus/templates/prometheus.yml b/roles/prometheus/templates/prometheus.yml index 98af4fa..c2c01c9 100644 --- a/roles/prometheus/templates/prometheus.yml +++ b/roles/prometheus/templates/prometheus.yml @@ -31,6 +31,11 @@ scrape_configs: static_configs: - targets: ['{{ lan_address }}:9090'] + scheme: https + tls_config: + ca_file: '/etc/prometheus/ca.crt' + cert_file: '/etc/prometheus/prometheus-{{ lan_address }}.crt' + key_file: '/etc/prometheus/prometheus-{{ lan_address }}.key' - job_name: node file_sd_configs: