Skip to content

TOomaAh/emby_exporter_go

Repository files navigation

Emby Exporter

An exporter for emby that exports Emby's main metrics.

/!\ NO MORE UPDATE (after 1.0.12) /!\

This project may no longer be maintained. I no longer use emby because of the 25 device limit, which I have unfortunately exceeded.

Not having found a solution with the Emby team and not having the means to take out a subscription just to extend the limit, I was obliged to stop using emby.

If you ever want to add features, I invite you to create a fork of the project and either continue it on your own or make a PR that I'll validate if I can.

Thank you for your understanding.

Get metrics

You can access the metrics on the following url: http://ip:9210/metrics

Grafana Dashboard

Dashboard example

Dashboard link

I thank jaycedk for the dashboard (it's his)

For build this project. It's simple

go get && go build .

To build the docker image (it's already build but just if you want):

To build the exporter you need a maxmind database. To do this, go to Maxmind and download the GeoLite2 City database.

The ".mmdb" file should then be placed at the root of the project with the following name: geoip.mmdb

docker build -t emby_exporter .

RUN Docker container

docker run -d -it \
   --name=emby_exporter \
   -e TZ=Europe/Paris \
   -e CONFIG_FILE=NAME_OF_YOUR_FILE.yml \
   -v '/path/to/your/config/file.yml:/config/file.yml' \
   bagul/goemby_exporter:latest

Config file example

server:
  url: "http://<ip|domain name>"
  port: 8096
  token: "your token"
  userID: "your userID"
options: # optional
  geoip: true # optional : default false

How to get your userID

  1. Login to your emby server
  2. Go to the settings page
  3. Go to the profile page
  4. In the url, you will find your userID (ex: http://localhost:8096/web/index.html#!/settings/profile.html?userId=<YOUR_USER_ID>&serverId=xxxxx)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published