selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
Plex-Data-Collector-For-InfluxDB logo

Self-host Plex-Data-Collector-For-InfluxDB

Plex server metrics collector for InfluxDB and Grafana

AlphaOpen Source
Updated7 years ago
LanguagePython
Setup difficultyModerate
Stars
164
Requires
InfluxDB, Plex Media Server
Install with Python
Grafana dashboard showing Plex metrics collected by the tool

What is Plex-Data-Collector-For-InfluxDB?

Plex Data Collector For InfluxDB is a lightweight Python daemon that connects to one or more Plex Media Servers using the Plex API, gathers real-time streaming sessions, library counts (including TV show seasons and episodes), and recently added items, then pushes those metrics to an InfluxDB database. It is designed to run continuously on your own hardware — a server, NAS, or Raspberry Pi — with a configurable polling interval. The collected data can be visualized in Grafana to monitor who is watching what, track library growth, and observe transcoding activity. Configuration is done via a simple INI file covering Plex credentials, server addresses, InfluxDB connection details, and logging level. The project has no web UI of its own; it is a background collector that depends on a separate InfluxDB instance and a Plex account with access to the target servers. Development appears inactive since the last commit in January 2019, but the code remains functional for Python 3.x environments.

Should you self-host Plex-Data-Collector-For-InfluxDB?

Plex-Data-Collector-For-InfluxDB scores 36/100 on selfhost.directory (how scoring works) and ranks #94 of 104 in Monitoring & observability. It has 164 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is written mostly in Python.

Its closest alternative on selfhost.directory is grafana (90/100, 77 569 stars). It scores higher overall, so compare the two before you pick. See Plex-Data-Collector-For-InfluxDB vs grafana side by side.

Features

  • Combined stream reporting
  • Configurable logging levels
  • Configurable polling interval
  • Multi-Server Support
  • Plex active stream monitoring
  • Plex library statistics
  • Recently added tracking
  • Single-run mode
  • SSL/TLS support

Plex-Data-Collector-For-InfluxDB README

How to install Plex-Data-Collector-For-InfluxDB

Install Plex-Data-Collector-For-InfluxDB with Python

Run pip install -r requirements.txt Enter your desired information in config.ini and run plexcollector.py

Requires Python 3.x and InfluxDB server

How to configure Plex-Data-Collector-For-InfluxDB

  • AddressInfluxDB address to connect to

    InfluxDB address to connect to

  • Databaseplex_dataDatabase to write collected stats to

    Database to write collected stats to

  • Delay10Seconds between each polling run

    Seconds between each polling run

  • HTTPSFalseConnect to Plex server using HTTPS

    Connect to Plex server using HTTPS

  • LevelerrorMinimum log level: critical, error, warning, info, debug

    Minimum log level: critical, error, warning, info, debug

    values: critical, error, warning, info, debug

  • PasswordPassword for InfluxDB and Plex authentication

    Password for InfluxDB and Plex authentication

  • Port8086InfluxDB port to connect to

    InfluxDB port to connect to

  • ReportCombinedTrueWhen using multiple servers report total streams over all servers

    When using multiple servers report total streams over all servers

  • ServersComma-separated list of Plex server addresses to pull data from

    Comma-separated list of Plex server addresses to pull data from

  • SSLFalseUse SSL for InfluxDB connection

    Use SSL for InfluxDB connection

  • UsernameUsername for InfluxDB and Plex authentication

    Username for InfluxDB and Plex authentication

  • Verify_SSLFalseDisable SSL verification for InfluxDB and Plex connections

    Disable SSL verification for InfluxDB and Plex connections

More in Analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…