esanchezm / prometheus-qbittorrent-exporter Goto Github PK
View Code? Open in Web Editor NEWA prometheus exporter for qbittorrent written in Python. Simple. Works. Docker image
License: GNU General Public License v3.0
A prometheus exporter for qbittorrent written in Python. Simple. Works. Docker image
License: GNU General Public License v3.0
Sorry, i try to reach via X but, i can't message directly...
So.. i have multiple clients.
How i can handle 5-6 clients at the same times
All clients are qbittorrent installed on Ubuntu.
Thank you.
Metrics should be prepended with qbittorrent_
for clarity and to follow https://prometheus.io/docs/practices/naming/
.
I have multiple application I'm collecting and qbittorrent's ones are scattered because of this.
I can make a PR later to fix this but wanted to ask here first. Cheers!
I am not seeing this version here:
https://hub.docker.com/r/esanchezm/prometheus-qbittorrent-exporter/tags?page=1&ordering=last_updated
It seems the recent versions aren't published to the docker registry.
$ docker pull esanchezm/prometheus-qbittorrent-exporter:v1.3.0
Error response from daemon: manifest for esanchezm/prometheus-qbittorrent-exporter:v1.3.0 not found: manifest unknown: manifest unknown
$ docker pull esanchezm/prometheus-qbittorrent-exporter:v1.4.0
Error response from daemon: manifest for esanchezm/prometheus-qbittorrent-exporter:v1.4.0 not found: manifest unknown: manifest unknown
$ podman search --list-tags esanchezm/prometheus-qbittorrent-exporter
NAME TAG
docker.io/esanchezm/prometheus-qbittorrent-exporter latest
docker.io/esanchezm/prometheus-qbittorrent-exporter master
docker.io/esanchezm/prometheus-qbittorrent-exporter v1.0.1
docker.io/esanchezm/prometheus-qbittorrent-exporter v1.0.2
docker.io/esanchezm/prometheus-qbittorrent-exporter v1.1.0
docker.io/esanchezm/prometheus-qbittorrent-exporter v1.1.1
docker.io/esanchezm/prometheus-qbittorrent-exporter v1.2.0
I would appreciate if tags for the new releases were also published!
For what it's worth, :latest
and :master
seem to be updated, but I'd still prefer version tags for releases. That way I can use for example Renovate or Dependabot to get alerted about updates. I also assume versioned releases are considered more stable than continuously following master.
There are some changes in v8 that seem to make the dashboard not work anymore. I'm creating this issue after the fact (I've fixed it), so I don't have specifics, sorry. I do remember that the $DS_PROMETHEUS
input wouldn't work for me.
Also, the dashboard was created with the expectation that the container name never changes. However, in a Kubernetes deployment, the container name only lasts as long as the container is running, so it results in multiple series of data being displayed when the container is replaced, which isn't what is intended for some of the panels.
Hi,
I am getting a missing module with the latest pull:
Traceback (most recent call last):
File "/usr/bin/qbittorrent-exporter", line 33, in
sys.exit(load_entry_point('prometheus-qbittorrent-exporter==1.1.1', 'console_scripts', 'qbittorrent-exporter')())
File "/usr/bin/qbittorrent-exporter", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/lib/python3.8/site-packages/qbittorrent_exporter/exporter.py", line 6, in
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
Hello,
i tried to install this on my instance, but sadly it is not working. The goal would be to deploy it without the docker container.
How to reproduce it on my side:
Install:
jellyfin@jellyfin:~$ pip3 install prometheus-qbittorrent-exporter
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: prometheus-qbittorrent-exporter in /usr/local/lib/python3.10/dist-packages (1.2.0)
Requirement already satisfied: python-json-logger==0.1.5 in ./.local/lib/python3.10/site-packages (from prometheus-qbittorrent-exporter) (0.1.5)
Requirement already satisfied: attrdict==2.0.1 in ./.local/lib/python3.10/site-packages (from prometheus-qbittorrent-exporter) (2.0.1)
Requirement already satisfied: qbittorrent-api==2021.3.18 in ./.local/lib/python3.10/site-packages (from prometheus-qbittorrent-exporter) (2021.3.18)
Requirement already satisfied: prometheus-client==0.8.0 in ./.local/lib/python3.10/site-packages (from prometheus-qbittorrent-exporter) (0.8.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from attrdict==2.0.1->prometheus-qbittorrent-exporter) (1.16.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from python-json-logger==0.1.5->prometheus-qbittorrent-exporter) (59.6.0)
Requirement already satisfied: requests>=2.16.0 in /usr/lib/python3/dist-packages (from qbittorrent-api==2021.3.18->prometheus-qbittorrent-exporter) (2.25.1)
Requirement already satisfied: urllib3>=1.24.2 in /usr/lib/python3/dist-packages (from qbittorrent-api==2021.3.18->prometheus-qbittorrent-exporter) (1.26.5)
Run it:
jellyfin@jellyfin:~$ qbittorrent-exporter
Traceback (most recent call last):
File "/usr/local/bin/qbittorrent-exporter", line 5, in <module>
from qbittorrent_exporter.exporter import main
File "/usr/local/lib/python3.10/dist-packages/qbittorrent_exporter/exporter.py", line 6, in <module>
from attrdict import AttrDict
File "/home/jellyfin/.local/lib/python3.10/site-packages/attrdict/__init__.py", line 5, in <module>
from attrdict.mapping import AttrMap
File "/home/jellyfin/.local/lib/python3.10/site-packages/attrdict/mapping.py", line 4, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
I am using the following python version:
jellyfin@jellyfin:~$ python3 --version
Python 3.10.12
Is there way to export https qbittorrent host?
Dockerhub rate limits are a pita, it would be cool if you could push this image to the github container registry. It's not hard to do.
Thanks!
Hello,
Is there a way to show speeds by torrents? I am using the below exporter for qbittorrent but I like your project more. However, I would really like to have this on my grafana dashboard.
https://github.com/caseyscarborough/qbittorrent-grafana-dashboard
Would it be possible to include the (All-time) "upload", "download" and "share ratio" which is shown under View>Statistics in the Web UI?
Or is the used python module not supporting those values.
Sadly, I was not able to dig into the python code from the module to check if my request is obsolete.
Thanks for the project <3
ValueError: 'forcedDL' is not a valid TorrentStates
Got this because I have a torrent in "Forced Downloading", might be some missing states.
Is there a way there could be more data exported in regards to the following?
Export of invididual torrent information (Name of torrent, eta, progress. etc.)
Include "Stalled" in the status of the torrents.
If you will use pipenv or poetry, you can setup dependabot auto-updates. What about it?
PLease provide a sample of adding theis exporter to prometheus.yml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.