This check monitors Pi-hole through the Datadog Agent.
The Pi-hole check is not included in the Datadog Agent package, so you need to install it.
For Agent v7.21+ / v6.21+, follow the instructions below to install the Pi-hole check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.
-
Run the following command to install the Agent integration:
sudo -u dd-agent -- datadog-agent integration install -t datadog-pihole==<INTEGRATION_VERSION>
-
Configure your integration similar to core integrations.
-
Edit the
pihole.d/conf.yaml
file, in theconf.d/
folder at the root of your Agent's configuration directory to start collecting your Pi-hole performance data. See the sample pihole.d/conf.yaml for all available configuration options.
Run the Agent's status subcommand and look for pihole
under the Checks section.
Enable logs collection for Datadog Agent in /etc/datadog-agent/datadog.yaml
on Linux platforms. On other platforms, see the Agent Configuration Files guide for the location of your configuration file:
logs_enabled: true
- Enable this configuration block to your
pihole.d/conf.yaml
file to start collecting Logs:logs: - type: file path: /var/log/pihole.log source: pihole
See metadata.csv for a list of metrics provided by this check.
Pi-hole does not include any events.
See service_checks.json for a list of service checks provided by this integration.
Need help? Contact Datadog support.