Datadog

The Datadog integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] sends all state changes to Datadog using a Datadog Agent.

Datadog allows you to analyze, monitor, cross-reference and alert upon your data. You can use it to detect statistical anomalies, see graphs across multiple sources in real-time, send critical alerts to Slack, etc.

The integration also sends events from the logbook into Datadog, allowing you to correlate these events with your data.

Setup

You need to have a Datadog agent installed in a network accessible by Home Assistant.

In the Datadog Agent configuration, you must enable DogStatsD non-local traffic to allow StatsD data collection from outside localhost.

Configuration

To use the datadog integration in your installation, add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes.

# Example configuration.yaml entry
datadog:

Configuration Variables

host string (Optional, default: localhost)

The IP address or hostname of your Datadog host, e.g., 192.168.1.23.

port integer (Optional, default: 8125)

Port to use.

prefix string (Optional, default: hass)

Metric prefix to use.

rate integer (Optional, default: 1)

The sample rate of UDP packets sent to Datadog.