Jellyfin Exporter is a Prometheus exporter for Jellyfin metrics. It fetches data from the Jellyfin API and exposes it in a format that Prometheus can consume.
- Fetch Jellyfin server metrics
- Expose data for Prometheus
- Metrics include: active streams, active users, library statistics, etc.
- Go version 1.18 or higher
- Jellyfin server up and running
- Prometheus server up and running
Clone the repository and build using Go:
git clone https://github.com/rafaelvieiras/jellyfin-exporter.git
cd jellyfin-exporter
go build
Build the Docker image and run it:
docker build -t jellyfin-exporter .
docker run -d -p 8080:8080 --name jellyfin-exporter jellyfin-exporter
- Set the Jellyfin API URL and API Token as environment variables:
export JELLYFIN_API_URL="http://your.jellyfin.server:8096"
export JELLYFIN_TOKEN="your-api-token"
- Start Jellyfin Exporter:
./jellyfin-exporter
- Point your Prometheus server to
http://localhost:8080/metrics
for scraping.
Contributions are welcome! See CONTRIBUTING.md for details on how to get started.
This project is licensed under the MIT License - see the LICENSE file for details.