summaryrefslogtreecommitdiffstats
path: root/modules/prometheus/templates
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-07-01 22:18:27 -0400
committerJesse Luehrs <doy@tozt.net>2021-07-01 22:18:27 -0400
commitda31e00b8b3cb5b7842019ef76e8cbcdec595622 (patch)
tree71c9ed837ca72ef4baccf8bff349070a8802056a /modules/prometheus/templates
parente86624d2d1fbe9c7cd7fe431af0cda0b8c9607d9 (diff)
downloadpuppet-tozt-da31e00b8b3cb5b7842019ef76e8cbcdec595622.tar.gz
puppet-tozt-da31e00b8b3cb5b7842019ef76e8cbcdec595622.zip
actually render the template
Diffstat (limited to 'modules/prometheus/templates')
-rw-r--r--modules/prometheus/templates/prometheus.yml10
1 files changed, 10 insertions, 0 deletions
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 -%>