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

Handle missing WireGuard better #114

Open
vilhelmprytz opened this issue Jul 31, 2023 · 0 comments
Open

Handle missing WireGuard better #114

vilhelmprytz opened this issue Jul 31, 2023 · 0 comments

Comments

@vilhelmprytz
Copy link

If the exporter is run on a machine that does not have WireGuard installed, the following error occurs when querying the exporter.

[2023-07-31T09:24:43Z WARN  prometheus_exporter_base] internal server error == Os { code: 2, kind: NotFound, message: "No such file or directory" }

And the returned HTTP response looks like this.

# curl localhost:9586/metrics
No such file or directory (os error 2)#

It would be nice if the exporter still returned some metadata metrics, and perhaps a metric that indicates whether scraping wg was successful or not, like wireguard_exporter_up or something like that.

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

1 participant