github eko/pihole-exporter v1.4.0

one hour ago

Features

  • pihole_queries_last_10min and pihole_ads_last_10min are back. They are the queries and blocked queries of the last full 10-minute slot, read from the Pi-hole v6 /api/history endpoint, so the admin's Permitted vs Blocked graph can be recreated in Grafana again. (#345, thanks @keyvanakbary)
  • TOP_CLIENTS_COUNT / -top_clients_count (default 10) sets how many clients are exported in pihole_top_sources and pihole_top_sources_blocked. Set it above your number of clients to export all of them. (#348, #344)

Bug fixes

  • pihole_top_sources counted blocked queries twice. Pi-hole already includes blocked queries in a client's total, but the exporter added the blocked count on top of it. Clients that were only in the blocked top list were exported with their blocked count alone, and the value jumped whenever a client entered or left a top list. pihole_top_sources now equals the client's total in Pi-hole. (#348, thanks @pdelagrave for the analysis in #344)
  • Grafana dashboard: "DNS Query types", "% of ads blocked", "Top queries" and "Top ads domains" now follow the node variable instead of showing every Pi-hole together. (#349, thanks @madic-creates in #346)

Changes

  • pihole_top_sources values change with the fix above: they drop for clients in the blocked top list. Expect a step in graphs and delta()/increase() alerts at upgrade time.

Documentation

  • Kubernetes: how to give the hostname label a stable value when the exporter runs as a sidecar and connects to the pod IP. (#349)

Maintenance

  • Go 1.27.4 builder image. (#347)

Don't miss a new pihole-exporter release

NewReleases is sending notifications on new releases.