An exporter for emby that exports Emby's main metrics.
go get && go build .
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 .
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
server:
url: "http://<ip|domain name>"
port: 8096
token: "your token"
userID: "your userID"
options: # optional
geoip: true # optional : default false
- Login to your emby server
- Go to the settings page
- Go to the profile page
- In the url, you will find your userID (ex: http://localhost:8096/web/index.html#!/settings/profile.html?userId=<YOUR_USER_ID>&serverId=xxxxx)
You can access the metrics on the following url:
http://ip:9210/metrics
(I will share my dashboard later)
This project will end up in a docker to facilitate its use.