add wg prom exporter

This commit is contained in:
Clément Désiles
2026-09-11 21:32:27 +02:00
parent 20cbf01040
commit 9fc28377d7
3 changed files with 14 additions and 1 deletions
@@ -1,2 +1,4 @@
# Managed by Ansible - DO NOT EDIT MANUALLY
{{ wireguard_exporter_args_var }}="-l {{ wireguard_exporter_listen_address }} -p {{ wireguard_exporter_port }}"
# --prepend_sudo=true: the exporter runs as the non-root wireguard_exporter
# user (Arch service unit) and needs sudo to call `wg show` (see sudoers.d).
{{ wireguard_exporter_args_var }}="-l {{ wireguard_exporter_listen_address }} -p {{ wireguard_exporter_port }} --prepend_sudo=true"