MindFlavor / prometheus_wireguard_exporter

A Prometheus exporter for WireGuard, written in Rust.
https://mindflavor.github.io/prometheus_wireguard_exporter
MIT License
492 stars 51 forks source link

Prometeus can't scrape WG's metrics #78

Closed ghost closed 2 years ago

ghost commented 3 years ago

image

Hi,

I wanna ask if why I can't scrape the metrics from prometheus but I can curl it locally. Below is my prometheus scraping config

qdm12 commented 3 years ago

What network do you run the wireguard prometheus exporter? Are you running it on the host, as a container, something else?

Also how do you run Prometheus? On the host? As a container?