---
title: Datadog
description: Send data and events to Datadog.
ha_category:
  - History
ha_release: 0.45
ha_domain: datadog
---

The `datadog` integration sends all state changes to [Datadog](https://www.datadoghq.com/) using a [Datadog Agent](https://docs.datadoghq.com/guides/basic_agent_usage/).

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.

<p class='img'>
  <img src='{{site_root}}/images/screenshots/datadog-board-example.png' />
</p>

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

<p class='img'>
  <img src='{{site_root}}/images/screenshots/datadog-event-stream.png' />
</p>

To use the `datadog` integration in your installation, add the following to your `configuration.yaml` file:

```yaml
# Example configuration.yaml entry
datadog:
```

{% configuration %}
host:
  description: The IP address or hostname of your Datadog host, e.g., 192.168.1.23.
  required: false
  default: localhost
  type: string
port:
  description: Port to use.
  required: false
  default: 8125
  type: integer
prefix:
  description: Prefix to use.
  required: false
  default: hass
  type: string
rate:
  description: The sample rate of UDP packets sent to Datadog.
  required: false
  default: 1
  type: integer
{% endconfiguration %}
