A python script for sending plex stats to influxdb
Forked from https://github.com/rickatnight11/collectd-plex
All I have done is strip out the collectd code and enable writing to influxdb
- Plex.tv authentication token (see included
get_auth_token.py
script) - Plex Media Server
- influxdb
Required:
Host
- Plex server hostnamePort
- Plex server portAuthToken
- Plex.tv authentication token
Optional:
HTTPS
- use HTTPS instead of HTTP (defaults toTrue
)Sessions
- collect active session count (defaults toTrue
)Movies
- collect movie counts (defaults toTrue
)Shows
- collect show counts (defaults toTrue
)Episodes
- collect episode counts (defaults toTrue
)Include
- sections to collect media counts for (assumes all, if excluded)Exclude
- sections to ignore media counts for (assumes all, if excluded)
python path/to/script/plex.py Host Port Authtoken
python path/to/script/plex.py -h for more info