summaryrefslogtreecommitdiffstats
path: root/roles/prometheus/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/prometheus/templates')
-rw-r--r--roles/prometheus/templates/prometheus.yml.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2
index c43864ea..f7f2ae24 100644
--- a/roles/prometheus/templates/prometheus.yml.j2
+++ b/roles/prometheus/templates/prometheus.yml.j2
@@ -15,3 +15,11 @@ scrape_configs:
- targets: {{ prometheus_node_exporter_targets | to_yaml }}
scrape_interval: {{ prometheus_scrape_interval }}
metrics_path: /metrics
+{% for job in prometheus_extra_scrape_configs %}
+
+ - job_name: '{{ job.name }}'
+ static_configs:
+ - targets: {{ job.targets | to_yaml }}
+ scrape_interval: {{ job.scrape_interval | default(prometheus_scrape_interval) }}
+ metrics_path: {{ job.metrics_path | default('/metrics') }}
+{% endfor %}