Skip to main content

Export emby metrics for prometheus

Project description

A prometheus exporter for emby written in Python 3. The exporter scrapes emby's API and exposes prometheus metrics. emby_exporter will call the API every 15 seconds by default, this can be adjusted through commandline arguments.

Grafana Dashboard See grafana_dashboard.json



  • info
  • library_size
  • devices
  • genres
  • production year
  • played
  • favourites

Metrics Example

    # HELP python_info Python platform information
    # TYPE python_info gauge
    python_info{implementation="CPython",major="3",minor="7",patchlevel="0",version="3.7.0"} 1.0
    # HELP emby_info emby info
    # TYPE emby_info gauge
    emby_info{id="5924731cb9904e3b9862475bad630a50",local_address="",operating_system="Linux",server_name="rpi3",version="",wan_address=""} 1.0
    # HELP emby_library_size emby library size
    # TYPE emby_library_size gauge
    emby_library_size{type="movies"} 969.0
    emby_library_size{type="series"} 141.0
    emby_library_size{type="episodes"} 8873.0
    emby_library_size{type="albums"} 0.0
    emby_library_size{type="artists"} 0.0
    emby_library_size{type="songs"} 0.0



pip3 install --upgrade emby_exporter


git clone
pip3 install -r requirements.txt
cd emby_exporter



docker pull dr1s/emby_exporter:latest
docker run --net=host -t dr1s/emby_exporter


git clone
docker build -t dr1s/emby_exporter .
docker run -d -p 9123:9123 -t dr1s/emby_exporter


usage: [-h] [-e EMBY] [-p PORT] [-i INTERFACE] [-a AUTH]
                        [-u USERID] [-s INTERVAL]


optional arguments:
  -h, --help            show this help message and exit
  -e EMBY, --emby EMBY  emby adress
  -p PORT, --port PORT  port emby_exporter is listening on
  -i INTERFACE, --interface INTERFACE
                        interface emby_exporter will listen on
  -a AUTH, --auth AUTH  emby api token
  -u USERID, --userid USERID
                        emby user id
  -s INTERVAL, --interval INTERVAL
                        scraping interval in seconds

Usage Example

emby_exporter --emby localhost:8069 --interface --port 9123 --interval 15 --auth <emby_api_token> --userid <emby_user_id>

The previous used arguements are the default options. All options are options except for the emby api token and userid.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

emby_exporter-0.1.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

emby_exporter-0.1.2-py2.py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page