> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drdroid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Datadog

In this page:

* How to build [Datadog Connection](#connection)?
* [Types of Querying](#querying) Permitted on Datadog

## Connection:

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/6Ak1hD58YvA" title="Datadog" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

#### Step 1: Create an API key associated with your user.

You can name this one 'dr-droid-key' and copy the "Key".

<img src="https://mintcdn.com/drdroid-88/2Y8WytCvgRMedNTV/images/docs/58a4b79-image.png?fit=max&auto=format&n=2Y8WytCvgRMedNTV&q=85&s=411bedea90109d0dab333056a7323bf8" alt="" width="1920" height="1080" data-path="images/docs/58a4b79-image.png" />

#### Step 2: Create an APP key with the following scopes:

<img src="https://mintcdn.com/drdroid-88/A8WqT-En1LSDOAlY/images/docs/1f13f92-image.png?fit=max&auto=format&n=A8WqT-En1LSDOAlY&q=85&s=4f8c1794044f00fcdca0a87b848cba06" alt="" width="1920" height="1080" data-path="images/docs/1f13f92-image.png" />

Scopes requested (optional):

* **apm\_service\_catalog\_read**
* **apm\_api\_catalog\_read**
* **logs\_read\_data**
* **logs\_read\_index\_data**
* **ci\_visibility\_read**
* **dashboards\_read**
* **events\_read**
* **incident\_notification\_settings\_write**
* **incident\_read**
* **incident\_settings\_write**
* **incident\_write**
* **metrics\_read**
* **monitors\_read**
* **slos\_read**
* **create\_webhooks**
* **timeseries\_query**
* **apm\_read**

#### Step 3: Enter the relevant Site Parameter:

Read more on the different site parameters [here](https://docs.datadoghq.com/getting_started/site/).

<img src="https://mintcdn.com/drdroid-88/A8WqT-En1LSDOAlY/images/docs/02e23b5-image.png?fit=max&auto=format&n=A8WqT-En1LSDOAlY&q=85&s=b8b23151b88586a9ec55427dd9f2f47a" alt="" width="510" height="220" data-path="images/docs/02e23b5-image.png" />

#### Step 4: Test connection & save

<img src="https://mintcdn.com/drdroid-88/7v3BmpsGXj6G8uPu/images/docs/cc17e36-image.png?fit=max&auto=format&n=7v3BmpsGXj6G8uPu&q=85&s=ce954f1dbaa66c7d753ba1651550118a" alt="" width="1920" height="1080" data-path="images/docs/cc17e36-image.png" />

## Querying:

Playbooks currently support the following types of queries within Datadog:

* Fetching results of any custom datadog metric query.
* Fetching Golden signals by selecting a service name.
* Fetching panels from any custom dashboard in Datadog.
* Selecting any of the metric that has been identified by Datadog's [metric summary](https://docs.datadoghq.com/metrics/summary/).
* Fetching logs from Datadog.
