-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi,
I'm running the exporter with a separate peer file:
/usr/local/bin/prometheus_wireguard_exporter -n /etc/wireguard/peers.conf
This causes the exporter to believe that the interface is named peers whereas the correct name is wg0
My wg0.conf:
[Interface]
Address = <network>/24
PrivateKey = <private_key>
ListenPort = 51280
PostUp = wg addconf wg0 /etc/wireguard/peers.conf
This allows to split the configuration file in two and manage user configuration separately.
Maybe we could add an option on the command line that would take the precedence on the filename if specified ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request