summaryrefslogtreecommitdiffstats
path: root/roles/prometheus/templates/prometheus.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/prometheus/templates/prometheus.yml.j2')
-rw-r--r--roles/prometheus/templates/prometheus.yml.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/prometheus/templates/prometheus.yml.j2 b/roles/prometheus/templates/prometheus.yml.j2
new file mode 100644
index 00000000..e39a69c0
--- /dev/null
+++ b/roles/prometheus/templates/prometheus.yml.j2
@@ -0,0 +1,16 @@
+global:
+ scrape_interval: {{ prometheus_scrape_interval }}
+ evaluation_interval: {{ prometheus_scrape_interval }}
+
+rule_files:
+
+scrape_configs:
+ - job_name: 'prometheus'
+ static_configs:
+ - targets: ['localhost:{{ prometheus_port }}']
+
+ - job_name: 'node'
+ static_configs:
+ - targets: ['localhost:{{ prometheus_node_exporter_port }}']
+ scrape_interval: {{ prometheus_scrape_interval }}
+ metrics_path: /metrics