Skip to content

No output when peer config is split #22

@vdebergue

Description

@vdebergue

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions