Releases: MindFlavor/prometheus_wireguard_exporter
Support for arbitrary comments in peers configuration
Breaking change
The exporter now requires you to specify the friendly names in a specific format (only if you want to use them of course). This allows you to use arbitrary comments in the file while keeping the friendly name functionality. Thank you Miloš Bunčić for this. This also paves the way for future metadata.
In order to migrate you can use this sed
command:
sed -i 's/#/# friendly_name=/' peers.conf
Please make sure to do a backup before using it!
Peer file case-insensitive parsing
- Peer file case-insensitive parsing via #32.
Support for multiple interfaces in the command line
The exporter now accepts multiple interfaces in the command line options, just pass the -i
parameter multiple times. Note the not specifying the interface is equivalent to specifying every one of them (the exporter will pass the al
l parameter to wg show
command).
Split interface name from peer configuration file
Breaking change
The exporter now allows you to specify a different interface from the file name. Previously if you specified the file name (the -n
flag) the program would infer the interface name from the file name. Now the two items are decoupled: you need to specify the file name (with -n
) and the interface name (with -i
) separately. Thank you Vincent Debergue for helping with this (see issue #22).
Upgrading from 3.2.4
Please note that the -n
flag no longer infer automatically the interface name from the file name. We now have the -i
parameter for that.
In order to keep the previous behaviour (if you use the -n
flag) please add the -i
flag to the command line arguments as well. For example, if you had prometheus_wireguard_exporter -n /etc/wireguard/wg0.conf
you must specify prometheus_wireguard_exporter -n /etc/wireguard/wg0.conf -i wg0
to keep the same behaviour.
Support for stderr output in TRACE log level
3.2.4 updated deps
IPv6 exporter IP support
Bugfix:
- Fixed inability to specify an IPv6 address as exporter bound IP (#24). Thank you Max Mazurov for the help identifying and resolving this.
Update to std::future
3.2.2 version 3.2.2
Workaround for IPv6 link-local addresses with zone IDs
wg show <interface> only if specified instead of wg show all
Ability to specify exporter IP address
- Ability to specify exporter IP address (PR #15 thanks to Konstantin Zamyakin).