summaryrefslogtreecommitdiff
path: root/roles/network/bind/templates/stats.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-10 19:31:09 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-10 19:31:09 +0100
commitb5406d18de64f273cbebb3875a84bc31074f0f00 (patch)
treee8774b1cb9b6124d14f5ec76ca103a7427de2b52 /roles/network/bind/templates/stats.j2
parentadd ch-pan and ch-mimas to prometheus monitoring (diff)
prometheus: add exporter for bind
Diffstat (limited to 'roles/network/bind/templates/stats.j2')
-rw-r--r--roles/network/bind/templates/stats.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/network/bind/templates/stats.j2 b/roles/network/bind/templates/stats.j2
new file mode 100644
index 00000000..06a1f514
--- /dev/null
+++ b/roles/network/bind/templates/stats.j2
@@ -0,0 +1,7 @@
+// Stats
+
+statistics-channels {
+{% for channel in bind_stats_channels %}
+ inet {{ channel.addr | default('*') }}{% if 'port' in channel %} port {{ channel.port }}{% endif %}{% if 'allow' in channel %} allow { {{ channel.allow | join('; ') }}; }{% endif %};
+{% endfor %}
+};