rtr7 / router7

router7 is a small home internet router completely written in Go. It is implemented as a gokrazy appliance.
https://router7.org
Apache License 2.0
2.69k stars 110 forks source link

prometheus metrics: also include incoming/outgoing traffic #71

Closed stapelberg closed 2 years ago

stapelberg commented 2 years ago

We currently only have metrics for forwarded bytes: https://github.com/rtr7/router7/blob/6d41b077a9dc732e3ed48bd62fa4039860bfaf20/cmd/netconfigd/netconfigd.go#L54-L68

Notably, forwarded bytes does not include bytes that were sent by the router itself, e.g. by the webserver or rsync server running on the machine.