]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/smokeping.yml.erb
Run smokeping exporter on gateways
[chef.git] / cookbooks / prometheus / templates / default / smokeping.yml.erb
diff --git a/cookbooks/prometheus/templates/default/smokeping.yml.erb b/cookbooks/prometheus/templates/default/smokeping.yml.erb
new file mode 100644 (file)
index 0000000..46caf47
--- /dev/null
@@ -0,0 +1,16 @@
+---
+target:
+- hosts:
+<% @ip4_hosts.each do |host| -%>
+  - <%= host %>
+<% end -%>
+  interval: 5s
+  network: ip4
+  size: 24
+- hosts:
+<% @ip6_hosts.each do |host| -%>
+  - <%= host %>
+<% end -%>
+  interval: 5s
+  network: ip6
+  size: 24