Skip to content

Split interface name from peer configuration file

Compare
Choose a tag to compare
@MindFlavor MindFlavor released this 07 Apr 08:23
· 60 commits to master since this release
2013f8b

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.