configure metric scraping from knot on auth-dns
Some checks failed
/ Ansible Lint (push) Failing after 6m12s
Some checks failed
/ Ansible Lint (push) Failing after 6m12s
This commit is contained in:
parent
291ebce943
commit
50beedbc62
7 changed files with 56 additions and 0 deletions
17
roles/knot/templates/knot-exporter.service.j2
Normal file
17
roles/knot/templates/knot-exporter.service.j2
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue