- Prometheus exporter for vnstat.
- Returns 5-min intervals of averaged rx and tx speed.
- FreeBSD 13.1-RELEASE (tested).
- vnstat installed, configured, and running.
- zsh as default shell (tested).
- Python 3.9 installed.
git clone https://github.com/jhfoo/vnstat-exporter.git
cd vnstat-exporter
./bin/install
cd vnstat-exporter
./bin/start
# listens on port 8080 at /api/prometheus
- Make it daemon-able without using gunicorn (capture access logs)
- Make host, port, and path configurable (yaml?)