Skip to content

pvelati/cheap-switch-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheap-switch-exporter

Prometheus Exporter for cheap switch boxes without SNMP

What

This prom-exporter is fetching port statistics from http://<switch_address>/port.cgi?page=stats and exposing them as metrics.

Why

There is no SNMP in the switch, there is no way to have better monitoring than navigating the integrated webui.

How

Copy config.yaml.example to config.yaml.
Edit config.yaml with switch address and credentials.

Direct

go mod download
go run main.go

Container

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)

About

Prometheus Exporter for cheap switch boxes without SNMP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published