minidlna_exporter.py
A prometheus exporter for minidlna written in Python 3. The exporter scrapes minidlna's status site and exposes it as prometheus metrics.
Content
Metrics
# 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="192.168.0.186",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="74:75:48:57:3f:21",ip_address="192.168.0.107",type="generic upnp 1.0"} 1.0
minidlna_clients{hw_address="ff:ff:ff:ff:ff:ff",ip_address="127.0.0.1",type="unknown"} 1.0
Setup
pip
pip3 install --upgrade git+https://github.com/dr1s/minidlna_exporter.py.git
manual
git clone https://github.com/dr1s/minidlna_exporter.py.git
cd minidlna_exporter.py
pip3 install -r requirements.txt
cd minidlna_exporter
./minidlna_exporter.py
Docker
docker-hub
docker pull dr1s/minidlna_exporter:latest
docker run --net=host -t dr1s/minidlna_exporter
manual
git clone https://github.com/dr1s/minidlna_exporter.py.git
docker build -t dr1s/minidlna_exporter .
docker run -d -p 9312:9312 -t dr1s/minidlna_exporter
Usage
usage: minidlna_exporter.py [-h] [-m MINIDLNA] [-p PORT] [-i INTERFACE]
minidlna_exporter
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 0.0.0.0 --port 9312
The previous used arguements are the default options. If nothing needs to be changed, minidlna_exporter can be started without arguments.
Metadata
Release files for minidlna-exporter 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minidlna_exporter-0.1.2.tar.gz | 4.0 kB | Without provenance | Details for minidlna_exporter-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minidlna_exporter-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for minidlna_exporter-0.1.2-py2.py3-none-any.whl |
Total release size: 9.3 kB
Release files / minidlna_exporter-0.1.2.tar.gz
| Download URL | minidlna_exporter-0.1.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4be8e4dab0052054d6b4d07b2782b9ed6a0c0b851facadacd5796a115bc05d3d
|
|
BLAKE2b-256 checksum How to use checksums |
6a0bdd32ca3262b1f7eb8b7c3313def8ee67779b8df6bbd0146944a0fcaff8bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.7.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Release files / minidlna_exporter-0.1.2-py2.py3-none-any.whl
| Download URL | minidlna_exporter-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d576e85790096a79a921ad29261bef46ab73bd5991f0dde2690a7d878ee437c6
|
|
BLAKE2b-256 checksum How to use checksums |
884eb650591a8c1749b6c8988cd6485bbf508f1343bcc0351186a5055d837285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.7.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
|
Security for minidlna-exporter 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.