node-exporter-textfile-collector-scripts icon indicating copy to clipboard operation
node-exporter-textfile-collector-scripts copied to clipboard

Script for Wireguard interface metrics

Open Lol3rrr opened this issue 3 years ago • 2 comments

Motivation

Im using wireguard as a vpn on my server and would like to be able to easily load at least basic metrics for it into prometheus.

Proposition

I would like to add a new script that exports metrics regarding wireguard interface metrics. This should be possible by using the wg show all dump command to get the Data to export some information about it

Lol3rrr avatar Aug 01 '22 22:08 Lol3rrr

Have you considered using a dedicated exporter such as https://github.com/MindFlavor/prometheus_wireguard_exporter?

dswarbrick avatar Aug 02 '22 00:08 dswarbrick

Yeah, but considering that there aren't that many metrics I find it a bit overkill to add an entire extra exporter.

I also previously looked at the project you linked and because there are no pre-built binaries made it a hassle to deploy for my setup and the docker version just didn't work in my setup.

Lol3rrr avatar Aug 02 '22 01:08 Lol3rrr