From 683010b10190119f4f052acfc1c49415854ef60f Mon Sep 17 00:00:00 2001 From: Camille Prugnard Date: Fri, 8 Oct 2021 10:57:40 +0200 Subject: [PATCH] add apache exporter --- templates/conf/prometheus.yml.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/conf/prometheus.yml.j2 b/templates/conf/prometheus.yml.j2 index 1f52e96..a051d9b 100644 --- a/templates/conf/prometheus.yml.j2 +++ b/templates/conf/prometheus.yml.j2 @@ -85,3 +85,14 @@ scrape_configs: - {{ target }}:9253 {% endfor %} {% endif %} + +{% if prometheus_apache_exporter_targets is defined %} + - job_name: apache + scrape_interval: 30s + scrape_timeout: 10s + static_configs: + - targets: +{% for target in prometheus_apache_exporter_targets %} + - {{ target }}:9117 +{% endfor %} +{% endif %}