Skip to main content

Export minidlna metrics for prometheus

Project description

A prometheus exporter for minidlna written in Python 3. The exporter scrapes minidlna's status site and exposes it as prometheus metrics.

Grafana Dashboard See grafana_dashboard.json



# 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 minidlna_files file metrcis
# TYPE minidlna_files gauge
minidlna_files{type="audio_files"} 3624.0
minidlna_files{type="video_files"} 1865.0
minidlna_files{type="image_files"} 60241.0
# HELP minidlna_clients client metrics
# TYPE minidlna_clients gauge
minidlna_clients{hw_address="00:71:47:40:36:c5",ip_address="",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="74:75:48:57:3f:21",ip_address="",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="ff:ff:ff:ff:ff:ff",ip_address="",type="unknown"} 1.0



pip3 install --upgrade git+


git clone
pip3 install -r requirements.txt
cd minidlna_exporter



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


git clone
docker build -t dr1s/minidlna_exporter .
docker run -d -p 9312:9312 -t dr1s/minidlna_exporter


usage: [-h] [-m MINIDLNA] [-p PORT] [-i INTERFACE]


optional arguments:
  -h, --help            show this help message and exit
  -m MINIDLNA, --minidlna MINIDLNA
                        minidlna adress
  -p PORT, --port PORT  port minidlna_exporter is listening on
  -i INTERFACE, --interface INTERFACE
                        interface minidlna_exporter will listen on

Usage Example

minidlna_exporter --minidlna localhost:8200 --interface --port 9312

The previous used arguements are the default options. If nothing needs to be changed, minidlna_exporter can be started without arguments.

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

minidlna_exporter-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

minidlna_exporter-0.1.2-py2.py3-none-any.whl (5.3 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