Prometheus exporter for qbittorrent
Project description
Prometheus qBittorrent exporter
A prometheus exporter for qBitorrent. Get metrics from a server and offers them in a prometheus format.
How to use it
You can install this exporter with the following command:
pip3 install prometheus-qbittorrent-exporter
Then you can run it with
qbittorrent-exporter
Another option is run it in a docker container.
docker run esanchezm/prometheus-qbittorrent-exporter
The application reads configuration using environment variables:
Environment variable | Default | Description |
---|---|---|
QBITTORRENT_HOST |
qbittorrent server hostname | |
QBITTORRENT_PORT |
qbittorrent server port | |
QBITTORRENT_USER |
"" |
qbittorrent username |
QBITTORRENT_PASS |
"" |
qbittorrent password |
EXPORTER_PORT |
8000 |
Exporter listening port |
EXPORTER_LOG_LEVEL |
INFO |
Log level. One of: DEBUG , INFO , WARNING , ERROR , CRITICAL |
Metrics
These are the metrics this program exports:
Metric name | Type | Description |
---|---|---|
qbittorrent_up |
gauge | Whether if the qBittorrent server is answering requests from this exporter. A version label with the server version is added |
qbittorrent_connected |
gauge | Whether if the qBittorrent server is connected to the Bittorrent network. |
qbittorrent_firewalled |
gauge | Whether if the qBittorrent server is connected to the Bittorrent network but is behind a firewall. |
qbittorrent_dht_nodes |
gauge | Number of DHT nodes connected to |
qbittorrent_dl_info_data |
counter | Data downloaded since the server started, in bytes |
qbittorrent_up_info_data |
counter | Data uploaded since the server started, in bytes |
torrents_count |
gauge | Number of torrents for each category and status . Example: torrents_count{category="movies",status="downloading"} |
License
This software is released under the GPLv3 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for prometheus-qbittorrent-exporter-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1f1a1ecbb412b0768cc99520c326666ab91bb5e769811e55a8df0f19373da98 |
|
MD5 | a24f39ba3a9dd65dc73cc595bd30d8fe |
|
BLAKE2b-256 | dc9ee16063e719cd42b35320a8ff8cf3465fd8123b3d339ceb82b0a4cf7aedb2 |
Close
Hashes for prometheus_qbittorrent_exporter-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9381c06ef4029ba66d9502a39c1d6ac0a942db594ef6e942c7b9861a9610a959 |
|
MD5 | 3f3b3827593ef708bb0986b03a59d026 |
|
BLAKE2b-256 | 6a6c535bb45d402e4413950c381e13d8c1f69f742aee34fc6b70846a0b1a8650 |