Code Monkey home page Code Monkey logo

jellyfin-exporter's Introduction

jellyfin-exporter

This is a Prometheus (https://prometheus.io) metrics exporter for Jellyfin (https://jellyfin.org).

Configuration

This exporter is configured via environment variables:

  • JELLYFIN_BASEURL: Jellyfin server address (required)
  • JELLYFIN_APIKEY: Jellyfin API key (required)
  • JELLYFIN_EXPORTER_PORT: The port on which the exporter listens (default 9027)

Running

Using docker

$ docker run \
   -e JELLYFIN_BASEURL=http(s)://<jellyfin address>:<port> \
   -e JELLYFIN_APIKEY=<apikey> \
   -p 9027:9027 \
   -d --restart=always \
   -n jellyfin_exporter \
   drkhsh/jellyfin-exporter:dev

Using docker-compose

See docker-compose file.

Manually

  1. Create a new python virtual environment: python3 -m venv .venv
  2. Install required modules into your venv: ./.venv/bin/pip3 install -r requirements.txt
  3. Start the exporter:
JELLYFIN_BASEURL=http://<jellyfin address>:<port> JELLYFIN_APIKEY=<apikey> ./.venv/bin/python3 jellyfin_exporter.py

Exported Metrics

Common labels:

  • jellyfin_instance (JELLYFIN_BASEURL)

General metrics:

  • jellyfin_active_users
  • jellyfin_active_users_count
  • jellyfin_active_streams_count
  • jellyfin_active_streams_direct_count
  • jellyfin_active_streams_transcode_count
  • jellyfin_item_counts
  • More TBA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.