From c7bce9fa368ac4f45e3ca45bc8a03cff547d9cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 12 Dec 2021 16:47:08 +0000 Subject: roles: Add prometheus and node_exporter --- roles/prometheus/templates/prometheus.conf.j2 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/prometheus/templates/prometheus.conf.j2 (limited to 'roles/prometheus/templates/prometheus.conf.j2') diff --git a/roles/prometheus/templates/prometheus.conf.j2 b/roles/prometheus/templates/prometheus.conf.j2 new file mode 100644 index 0000000..7402dd2 --- /dev/null +++ b/roles/prometheus/templates/prometheus.conf.j2 @@ -0,0 +1,21 @@ +# managed by Ansible + +global: + scrape_interval: 15s + evaluation_interval: 15s + +alerting: + alertmanagers: + - static_configs: + - targets: + +rule_files: + +scrape_configs: + - job_name: "prometheus" + static_configs: + - targets: ["127.0.0.1:9090"] + - job_name: "node_exporter" + scrape_interval: 5s + static_configs: + - targets: ["127.0.0.1:9100"] -- cgit v1.2.3