Go to file
rridley 993c1c9524
Misc cleanup
2022-06-21 08:15:07 -04:00
.gitignore Cleanup code a little bit, add peer uptime 2022-06-21 07:58:53 -04:00
Makefile Remove debug code 2022-06-20 17:38:27 -04:00
README.md Update readme 2022-06-20 17:20:43 -04:00
go.mod Fix module name 2022-06-21 08:00:56 -04:00
main.go Misc cleanup 2022-06-21 08:15:07 -04:00

README.md

Prometheus Yggdrasil Exporter

Exposes metrics data from Yggdrasil as a prometheus endpoint.

Has no external dependencies.

Building

go build -o yggdrasil_exporter .

Running

Specify the admin endpoint using the -e flag like so:

./yggdrasil_exporter -e unix:///var/run/yggdrasil.sock

Metrics

You can see the metrics by just using curl

curl http://localhost:3000/metrics
yggdrasil_peer_bytes_sent{peer="200:28c9:944b:2376:2017:3250:bdb4:7c0d"} 6054
yggdrasil_peer_bytes_received{peer="200:28c9:944b:2376:2017:3250:bdb4:7c0d"} 4745