diff --git a/server/config/monitoring/docker-compose.yml b/server/config/monitoring/docker-compose.yml index 85f2285..378561b 100644 --- a/server/config/monitoring/docker-compose.yml +++ b/server/config/monitoring/docker-compose.yml @@ -196,6 +196,26 @@ services: labels: - traefik.disable + exporter-qbittorrent: + image: esanchezm/prometheus-qbittorrent-exporter + container_name: monitoring_exporter-qbittorrent + environment: + - QBITTORRENT_HOST=qbittorrent.jafner.net + - QBITTORRENT_PORT=443 + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + restart: "no" + networks: + - monitoring + labels: + - traefik.disable + networks: monitoring: external: true diff --git a/server/config/monitoring/prometheus.yml b/server/config/monitoring/prometheus.yml index 5a74484..6446c98 100644 --- a/server/config/monitoring/prometheus.yml +++ b/server/config/monitoring/prometheus.yml @@ -61,6 +61,10 @@ scrape_configs: scrape_interval: 5s static_configs: - targets: ['exporter-docker:9417','jafner.tools:50417'] + - job_name: 'exporter-qbittorrent' + scrape_interval: 5s + static_configs: + - targets: ['exporter-qbittorrent:8000'] # scrape IoT devices - job_name: 'tasmota'