The Wireguard stats recevier queries the stats of the connected Wireguard peers via generic netlink (Linux). wgctrl is used to fetch the stats and for the objects definition.
This receiver can we integrated with the custom OpenTelemetry Collector Builder:
receivers:
- gomod: github.com/rogercoll/wireguardreceiver v0.0.3
Requires privileged execution
See metadata autogenerated file.
- Add latest handshake