> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/d/datadog.md).

# Datadog

Datadog is a cloud monitoring and observability platform. OctoXLabs uses it to add the hosts that report to Datadog, with their agent version and platform, to the inventory.

## Use cases

* Find hosts that report to Datadog but are missing from your endpoint security tool.

```
Adapters = datadog AND NOT Adapters = falcon-crowdstrike
```

* Find Windows hosts that Datadog monitors.

```
Adapters = datadog AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                                       | Port | Protocol |
| ------------------- | ------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Datadog API (default `https://api.datadoghq.com`) | 443  | HTTPS    |

Use the API URL of your Datadog site if your organization is not on the default site.

### Required permissions

| Scope or role   | Permission | Needed for                   |
| --------------- | ---------- | ---------------------------- |
| Datadog API key | Valid key  | Key validation and host list |

Not verified: the exact Datadog role needed to read hosts and users. The connector sends only the API key header.

## Create credentials in Datadog

{% stepper %}
{% step %}

### Sign in

Log in to your Datadog console.
{% endstep %}

{% step %}

### Open API keys

Go to **Organization Settings** > **API Keys**.
{% endstep %}

{% step %}

### Create the key

Click **Create API Key** and copy the key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter   | Required | Type              | Default                     | Description                     |
| ----------- | -------- | ----------------- | --------------------------- | ------------------------------- |
| URL         | Yes      | String            | `https://api.datadoghq.com` | Base URL of the Datadog API.    |
| API Key     | Yes      | String            | None                        | Datadog API key.                |
| HTTPS Proxy | No       | String            | None                        | Proxy URL.                      |
| Timeout     | No       | Integer (seconds) | `30`                        | Time to wait for API responses. |

## Troubleshooting

| Error message | Cause                                                             | Fix                                                                |
| ------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------ |
| Not verified  | The connector code defines no custom error text for this adapter. | Check the URL, the API key and network access to the Datadog site. |

## Change history

{% hint style="info" %}
Available starting from version 5.0.0.
{% endhint %}
