summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-06-02 00:46:12 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-06-20 01:44:16 +0200
commit94f56133bb0035fe85ee9e58d573eb4485e9fa42 (patch)
tree88c0f9979faa8e8d7e0d8c0389cd3203514f3a8e /roles/monitoring/prometheus/server/templates
parentprometheus: node exporter automatically select time-sync collector (diff)
prometheus: initial serverside config
Diffstat (limited to 'roles/monitoring/prometheus/server/templates')
-rw-r--r--roles/monitoring/prometheus/server/templates/prometheus.yml.j213
1 files changed, 12 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/server/templates/prometheus.yml.j2 b/roles/monitoring/prometheus/server/templates/prometheus.yml.j2
index cadc3ef0..007afa90 100644
--- a/roles/monitoring/prometheus/server/templates/prometheus.yml.j2
+++ b/roles/monitoring/prometheus/server/templates/prometheus.yml.j2
@@ -8,4 +8,15 @@ rule_files:
scrape_configs:
- job_name: 'prometheus'
static_configs:
- - targets: ['localhost:9090']
+ - targets: ['localhost:9090']
+{% for job in prometheus_server_jobs %}
+
+ - job_name: '{{ job }}'
+ metrics_path: /proxy
+ params:
+ module:
+ - {{ job }}
+ file_sd_configs:
+ - files:
+ - "/etc/prometheus/jobs/{{ job }}/*.yml"
+{% endfor %}