Skip to content

d9705996/sonos_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonos_exporter

This one is short and sweet: it exports network stats from each device in a Sonos network to Prometheus.

It autodetects the Sonos network, requests ifconfig information from each host, and ships the stats out via the official Prometheus client.

Dependencies are tracked with dep and vendored in this repository.

Running the exporter:

$ go build .
$ ./sonos_exporter
$ curl http://localhost:1915/metrics

You can bind to another address and port with the --address flag.

It exports these stats:

* sonos_rx_packets
* sonos_tx_packets
* sonos_rx_bytes
* sonos_tx_bytes

They'll be labeled with the Sonos zone name ("player") and network device ("device").

About

Prometheus exporter for Sonos networks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%