Prometheus Exporter for cheap switch boxes without SNMP
This prom-exporter is fetching port statistics from http://<switch_address>/port.cgi?page=stats and exposing them as metrics.
There is no SNMP in the switch, there is no way to have better monitoring than navigating the integrated webui.
Copy config.yaml.example to config.yaml.
Edit config.yaml with switch address and credentials.
go mod download
go run main.go
docker build -t cheap-switch-exporter .
docker run -v "./config.yaml:/config.yaml" -p 8080:8080 cheap-switch-exporter
Tested on:
- Horaco ZX-SWTGW218AS
- Sodola SL-SWTG124AS (dennyreiter)