pi-hole-exporter

by WyriHaximus

Helm chartv0.1.3App d05df48Verified publisher

Pi-Hole Exporter

About this chart

Pi-Hole Exporter

Opinionated helm chart for eko/pihole-exporter. There is an alternative available at SiM22/pihole-exporter-helm-chart but that didn't meet my requirements.

Configuration

By default, this chart will look for a secret name pi-hole in the same namespace for additional env vars to add to the container. It is required that it contains the location of your PiHole and a away to authenticate against it. Those can be find here. You can find an example secret file in library-ci/secret.yaml.

Opinionated decisions

  • Port is hardcoded to 9617 for the metrics.
  • Metrics collection from Pi-Hole happens every 30 seconds.
  • Requires you to configure a secret in the same namespace as you deploy this chart to container additional env vars.

Deploy pi-hole-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pi-hole-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 chartpi-hole-exporter is pinned at v0.1.3 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