Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script for Wireguard interface metrics #124

Open
Lol3rrr opened this issue Aug 1, 2022 · 2 comments
Open

Script for Wireguard interface metrics #124

Lol3rrr opened this issue Aug 1, 2022 · 2 comments

Comments

@Lol3rrr
Copy link

Lol3rrr commented Aug 1, 2022

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

@dswarbrick
Copy link
Member

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

@Lol3rrr
Copy link
Author

Lol3rrr commented Aug 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants