From da31e00b8b3cb5b7842019ef76e8cbcdec595622 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Jul 2021 22:18:27 -0400 Subject: actually render the template --- modules/prometheus/templates/prometheus.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/prometheus/templates/prometheus.yml (limited to 'modules/prometheus/templates') diff --git a/modules/prometheus/templates/prometheus.yml b/modules/prometheus/templates/prometheus.yml new file mode 100644 index 0000000..c87b181 --- /dev/null +++ b/modules/prometheus/templates/prometheus.yml @@ -0,0 +1,10 @@ +global: + scrape_interval: 10s + +scrape_configs: +- job_name: telegraf + static_configs: + - targets: +<% @vpn_ips.each do |_, ip| -%> + - "<%= @ip %>:9273" +<% end -%> -- cgit v1.2.3-54-g00ecf