# Datadog Metrics

1. In order to set metrics in your status page from Datadog Synthetics, first head to your [Datadog dashboard](https://app.datadoghq.com/) and click on <mark style="background-color:green;">Application Keys</mark> from your organization's settings menu:<br>

   <figure><img src="/files/OYiUTazfclj0Zj3sWbUP" alt=""><figcaption></figcaption></figure>
2. Once there, create a new Application Key, making sure to Edit its scope to include `synthetics_read` permissions.

   <figure><img src="/files/JB7PNi2prGbEKvPhmaS3" alt=""><figcaption></figcaption></figure>
3. Now go to <mark style="background-color:green;">API Keys</mark> and create (or reuse) a Datadog API Key.

   <figure><img src="/files/g3x1tHiBXfvJN61QH8aU" alt=""><figcaption></figcaption></figure>
4. In your status page's Admin site click on **Integrations** > **New integration** and select **Datadog** from the dropdown.
5. Enter the API and Application keys you obtained in **steps 1-3**, making sure to select the <mark style="background-color:yellow;">correct region</mark> and click on **Create**.
6. Then click on **Metrics** > **New metrics** and select your Datadog integration in the Source dropdown.
7. Select the synthetic test that you would like to create the metric from and configure your metric (for browser tests only Uptime type is supported) then click **Create**.<br>

   <figure><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/5b7c6e932c7d3a03f89df563/images/5f9165cc52faff0016af2730/file-pGRmkG2dWx.png" alt=""><figcaption></figcaption></figure>
8. Once you've created the metric it should start populating with the last hour, it will continue to get populated in the next hours after that.<br>

   <figure><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/5b7c6e932c7d3a03f89df563/images/5f916689c9e77c001621a5a1/file-iGhAklycEy.png" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.statuspal.io/platform/integrations/datadog-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
