Skip to content

Grabs the current listener count for a given Icecast mountpoint and shoves it into Graphite. No fuss.

License

Notifications You must be signed in to change notification settings

fm-futura/icecast_listeners_to_carbon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Icecast listeners to Graphite

Grabs the current listener count for a given Icecast mountpoint and shoves it into Graphite. No fuss.

Installation

There isn't really much to do besides

pip install -r requirements.txt

You know the drill about virtual envs and all that already.

Usage

icecast_listeners_to_carbon.py  --host streamer.host.tld --port 8000 --user admin --password hackme --mountpoint /live.mp3 --metric listeners-live

The full set of options is:

$ ./icecast_listeners_to_carbon.py
usage: icecast_listeners_to_carbon.py [-h] --host HOST --port PORT --user USER
                                      --password PASSWORD --mountpoint
                                      MOUNTPOINT [--metric METRIC]
                                      [--graphite-server GRAPHITE_SERVER]
                                      [--graphite-port GRAPHITE_PORT]
                                      [--dry-run]

If not given the metric will be 'mountpoint-listeners'. You probably want to run this periodically from cron or something like that. (and change the default password too...)

About

Grabs the current listener count for a given Icecast mountpoint and shoves it into Graphite. No fuss.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages