Jellyfin exporter for Prometheus
Go to file
Amazed 5320ac88b6
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-28 21:50:21 +02:00
src/jellyfin_exporter Support Remux and DirectStream transcode types, fixes #1 2023-10-27 17:48:32 +02:00
.drone.yml Init 2023-10-17 18:25:00 +02:00
.gitignore Init 2023-10-17 18:25:00 +02:00
docker-compose.yml Update docker-compose.yml 2023-10-22 14:51:03 +02:00
Dockerfile Update Dockerfile 2023-10-22 21:37:08 +02:00
jellyfin.yml Init 2023-10-17 18:25:00 +02:00
pylintrc Init 2023-10-17 18:25:00 +02:00
pyproject.toml Fix 2023-10-17 18:33:16 +02:00 Update 2023-10-28 21:50:21 +02:00
test-requirements.txt Init 2023-10-17 18:25:00 +02:00

Prometheus Jellyfin Exporter

This is an exporter that exposes information gathered from Jellyfin for use by the Prometheus monitoring system.


Requires Python 3.9 or better.

Using docker

docker pull

Example: Display usage message:

docker run -it --rm --help

Example: Run the image with a mounted configuration file and published port:

docker run --init --name prometheus-jellyfin-exporter -d -p -v /path/to/jellyfin.yml:/etc/jellyfin.yml

Prometheus Jellyfin Exporter will now be reachable at http://localhost:9222/.


Visit http://localhost:9222/jellyfin?target= where is the IP of the Jellyfin server to get metrics from. Specify the module request parameter, to choose which module to use from the config file.

The target request parameter defaults to localhost. Hence if jellyfin_exporter is deployed directly on the jellyfin host, target can be omitted.


Using jellyfin.yml config file

Example jellyfin.yml for token authentication:

  api_key: "your token"
  verify_ssl: true

Prometheus Configuration

The Jellyfin exporter can be deployed either directly on a Jellyfin server or onto a separate machine.

Example config for Jellyfin exporter running on Jellyfin server:

- job_name: 'jellyfin'
   - targets:
     -  # Jellyfin server with Jellyfin exporter.
 metrics_path: /jellyfin
   module: [default]

Example config for Jellyfin exporter running on Prometheus host:

  - job_name: 'jellyfin'
      - targets:
        -  # Jellyfin server.
    metrics_path: /jellyfin
      module: [default]
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement:  # Jellyfin exporter.