qbittorrent-exporter

by harish2k01

Helm chartv0.1.2App v2.0.4MITVerified publisher

Deploys the martabal qBittorrent Prometheus exporter on Kubernetes

About this chart

qBittorrent Exporter Helm Chart

Browse the Helm chart catalog to explore available charts and installation commands.

This chart deploys martabal/qbittorrent-exporter, a Prometheus exporter for qBittorrent.

[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.

Install

helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install qbittorrent-exporter harish2k01/qbittorrent-exporter

Install From OCI

helm install qbittorrent-exporter oci://ghcr.io/harish2k01/helm-charts/qbittorrent-exporter --version 0.1.2

qBittorrent Authentication

qBittorrent exporter v2 supports the authentication changes introduced by qBittorrent 5.2.0.

For qBittorrent 5.2.0 or newer, create an API key in the qBittorrent WebUI and use auth.method: apiKey:

qbittorrent:
  baseUrl: http://qbittorrent.media.svc.cluster.local:8080
  auth:
    method: apiKey
    existingSecret: qbittorrent-exporter-auth
    apiKeySecretKey: api-key

For older qBittorrent versions, use username and password credentials:

qbittorrent:
  auth:
    method: legacy
    existingSecret: qbittorrent-exporter-auth
    usernameSecretKey: username
    passwordSecretKey: password

ServiceMonitor

Enable a Prometheus Operator ServiceMonitor when your cluster has the CRD installed:

serviceMonitor:
  enabled: true
  labels:
    release: kube-prometheus-stack

Values

KeyTypeDefaultDescription
replicaCountint1Number of exporter pods
image.repositorystringghcr.io/martabal/qbittorrent-exporterContainer image repository
image.tagstringv2.0.4Container image tag
image.pullPolicystringIfNotPresentContainer pull policy
qbittorrent.baseUrlstringhttp://qbittorrent:8080qBittorrent WebUI URL
qbittorrent.auth.methodstringlegacyAuth mode: legacy, apiKey, cookieName, or none
qbittorrent.auth.existingSecretstring""Secret containing credentials
qbittorrent.auth.createSecretboolfalseCreate a normal Secret from inline credentials
qbittorrent.auth.usernameSecretKeystringusernameSecret key for legacy username
qbittorrent.auth.passwordSecretKeystringpasswordSecret key for legacy password
qbittorrent.auth.apiKeySecretKeystringapi-keySecret key for qBittorrent API key
qbittorrent.auth.cookieNamestring""qBittorrent cookie name for cookie-based auth
qbittorrent.exporter.portint8090Exporter listen port
qbittorrent.exporter.pathstring/metricsMetrics path
qbittorrent.exporter.logLevelstringINFOExporter log level
qbittorrent.features.enableTrackerbooltrueCollect tracker metrics
qbittorrent.features.enableHighCardinalityboolfalseEnable high-cardinality metrics
qbittorrent.features.enableIncreasedCardinalityboolfalseEnable increased-cardinality metrics
service.typestringClusterIPKubernetes Service type
service.portint8090Service port
serviceMonitor.enabledboolfalseCreate a Prometheus Operator ServiceMonitor
resourcesobject{}Container resource requests and limits
livenessProbeobjectHTTP GET /healthzLiveness probe
readinessProbeobjectHTTP GET /healthzReadiness probe
nodeSelectorobject{}Pod node selector
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity

Deploy qbittorrent-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has qbittorrent-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartqbittorrent-exporter is pinned at v0.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply