From 53f30103b32289a3416a91b79b42df0f8fd6aa77 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 24 Jan 2025 12:49:07 +0000 Subject: [PATCH] prometheus: Add unbound_exporter targets --- roles/prometheus/templates/prometheus.yml.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2 index ee9c9cb..74aa03f 100644 --- a/roles/prometheus/templates/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus.yml.j2 @@ -60,6 +60,17 @@ scrape_configs: - target_label: __address__ replacement: nms.home.foo.sh:9116 + - job_name: unbound + scheme: https + tls_config: + ca_file: "{{ tls_certs }}/ca.crt" + key_file: "{{ tls_private }}/{{ inventory_hostname }}.key" + cert_file: "{{ tls_certs }}/{{ inventory_hostname }}.crt" + static_configs: + - targets: + - dna-gw01.home.foo.sh:9167 + - dna-gw02.home.foo.sh:9167 + - job_name: node scheme: https tls_config: