GitHub user MindFlavor created an exporter for WireGuard that collects metrics from the wg show all dump command.
Install WireGuard Exporter
MindFlavor/prometheus_wireguard_exporterA Prometheus exporter for WireGuard, written in Rust. - MindFlavor/prometheus_wireguard_exporterGitHubMindFlavor
You can either compile the exporter from source or use the cargo command