Home

Awesome

Plex Data Collector For InfluxDB

Screenshot

This is a tool for collecting some basic info about your Plex server and sending it to InfluxDB. This is ideal for displaying Plex specific information in a tool such as Grafana.

Usage

Enter your desired information in config.ini and run plexcollector.py

Please Note: If you have authentication enable in InfluxDB the provided user must be an admin

Configuration within config.ini

GENERAL

KeyDescription
DelayDelay between updating metrics
ReportCombinedWhen using multiple servers report total streams over all servers

INFLUXDB

KeyDescription
AddressDelay between updating metrics
PortInfluxDB port to connect to. 8086 in most cases
DatabaseDatabase to write collected stats to
UsernameUser that has access to the database
PasswordPassword for above user
Verify_SSLDisable SSL verification for InfluxDB Connection

PLEX

KeyDescription
UsernamePlex username
PasswordPlex Password
ServersA comma separated list of servers you wish to pull data from.
HTTPSConnect to server using HTTPS
Verify_SSLDisable SSL verification (Use this if you have a self sign SSL)

LOGGING

KeyDescription
LevelMinimum type of message to log. Valid options are: critical, error, warning, info, debug

Requirements

Run pip install -r requirements.txt

Python Packages