From 91281941443ea33de1522a42424d11d8e488a565 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 6 Oct 2021 14:15:14 +0200 Subject: [PATCH] use mssl for self monitoring of prometheus --- roles/prometheus/templates/prometheus.yml | 5 +++++ 1 file changed, 5 insertions(+) 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: