From 9fe8737f961f00f85fcb7d801679f808be5d1185 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <tschneider@asta.rwth-aachen.de> Date: Fri, 25 Sep 2020 21:59:07 +0200 Subject: [PATCH] prometheus: Add global/scrape_{interval,timeout} config option --- prometheus/templates/prometheus.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prometheus/templates/prometheus.yml.j2 b/prometheus/templates/prometheus.yml.j2 index d8f1192..6ba2219 100644 --- a/prometheus/templates/prometheus.yml.j2 +++ b/prometheus/templates/prometheus.yml.j2 @@ -3,6 +3,8 @@ global: # external systems (federation, remote storage, Alertmanager). external_labels: monitor: '{{ ansible_fqdn }}' + scrape_interval: '{{ prometheus_scrape_interval|default("1m") }}' + scrape_timeout: '{{ prometheus_scrape_timeout|default("10s") }}' alerting: alert_relabel_configs: -- GitLab