From b5406d18de64f273cbebb3875a84bc31074f0f00 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 10 Nov 2022 19:31:09 +0100 Subject: prometheus: add exporter for bind --- roles/network/bind/templates/stats.j2 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/network/bind/templates/stats.j2 (limited to 'roles/network/bind/templates/stats.j2') 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 %} +}; -- cgit v1.2.3