configure metric scraping from knot on auth-dns
Some checks failed
/ Ansible Lint (push) Failing after 6m12s

This commit is contained in:
lilly 2026-05-06 15:51:08 +02:00
commit 50beedbc62
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
7 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# {{ ansible_managed }}
[Unit]
Description=knot prometheus exporter
Wants=network.target
Before=alloy.service
After=network.target
[Service]
User=knot
ExecStart=/usr/sbin/knot-exporter
ReadWritePaths=/run/knot/
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
PrivateIPC=true