> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integrations/datadog-integration-setup.md).

# Datadog Integration Setup

### Getting Started <a href="#h_01h9kzjybek4temypa6a5ffh7w" id="h_01h9kzjybek4temypa6a5ffh7w"></a>

BalkanID requires a **service account** for this integration, rather than a personal or employee-named account. A service access token is issued from a service account, so the account is what the token's permissions come from.

#### Requirements: <a href="#h_01hq31hmzdrvcyk70k44ey6dv5" id="h_01hq31hmzdrvcyk70k44ey6dv5"></a>

* ***Service Access Token -*** The secret value generated for the access token created in Datadog service account.
* ***Site -*** The Datadog site your organization lives on, for example `datadoghq.com` or `datadoghq.eu`.

#### Getting the Configuration <a href="#h_01h9kzjybeacehzfkaw2cz10mj" id="h_01h9kzjybeacehzfkaw2cz10mj"></a>

1. Open your Datadog page and navigate to *Organization Settings*, then select *Service Accounts* from the left menu under IDENTITY & ACCOUNTS.

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2F4ygoDmtDBsCkE9JzBybx%2Fimage.png?alt=media&amp;token=09c294de-7ab3-45c5-a20f-8aa1bf81cc14" alt=""><figcaption></figcaption></figure></div>
2. Click on *+ New Service Account* and give it the **Datadog Admin Role**. After creating the service account, click on this account.

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FBOlVTIRxd6NqM8sTSmRw%2Fimage.png?alt=media&amp;token=f68eb3c8-8a67-4ef4-95a2-2cb840343aee" alt=""><figcaption></figcaption></figure></div>
3. Click *+ New Token*, enter a token name, and set an expiry. Select the scopes the integration needs. Use the *Filter Scopes* box in the *Edit Access Token Scope* dialog to find each one by name - see the table below.

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FEXiJY7az6wICmF95a1vF%2Fimage.png?alt=media&amp;token=c29f414d-14d4-4a54-86a3-796b8fd12c40" alt=""><figcaption></figcaption></figure></div>

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FUr0PGOMPC4gUR6vP8wGE%2Fimage.png?alt=media&amp;token=198380d4-d73f-4457-b58b-79b45a7b3903" alt=""><figcaption></figcaption></figure></div>
4. Click to create the token, then copy the secret and save it. This will be your *Service Access Token*. It is shown once and cannot be retrieved afterwards. You will have to enter it within the BalkanID application when prompted.
5. For *Site*, copy the value shown at the top of the Organization Settings page next to your organization name - `Site: datadoghq.com`

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FtlSoJc3euhJSqRgUN0CE%2Fimage.png?alt=media&amp;token=95fee388-54b2-480d-8aea-3ccfdff7fd00" alt=""><figcaption></figcaption></figure></div>

### Required Scopes

| Scope                            | Unlocks                                  |
| -------------------------------- | ---------------------------------------- |
| `user_access_read`               | Users, Service Accounts, Roles, Insights |
| `teams_read`                     | Teams and team memberships               |
| `dashboards_read`                | Dashboards                               |
| `notebooks_read`                 | Notebooks                                |
| `security_monitoring_rules_read` | Security Rules                           |
| `cases_read`                     | Case Management Projects and Cases       |
| `api_keys_read`                  | API Keys                                 |
| `org_app_keys_read`              | Application Keys and Access Tokens       |
| `org_management`                 | Organizations                            |
| `service_account_write`          | A service account's own Application Keys |
| `monitors_read`                  | Monitors                                 |
| `synthetics_read`                | Synthetic Tests                          |

### Configure integration within your BalkanID tenant <a href="#h_01h9kzjybf182sj7n8mrydhrdt" id="h_01h9kzjybf182sj7n8mrydhrdt"></a>

1. Login to the BalkanID application and switch to the tenant you would like to add your integration to.
2. Head to *Integrations* > **Add Integration**, select **Datadog.**

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FXRvzAfUdpqlc7iQZT5Na%2Fimage.png?alt=media&amp;token=43dd9897-4221-45f6-b341-f15fd50fa14a" alt=""><figcaption></figcaption></figure></div>

   <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2F9FMbdMM1UgyNmAGgJWim%2Fimage.png?alt=media&amp;token=5dde2bd7-430d-4944-a005-55fb8c4ab1aa" alt=""><figcaption></figcaption></figure></div>
3. Set up the *Primary Application owner (mandatory)* and the *Description*, if any. Set up Secondary Application Owner(s), if any.<br>

   Select the Extraction Type. From here, you can configure your application using one of the following methods:

   1. **Direct integration** - Provide your Datadog Site and Service access token obtained above to set up a direct connection with BalkanID.
   2. **SCIM integration** - Provide SCIM server credentials to set up a SCIM connection with BalkanID.
   3. **Manual file upload** - Upload Entity and Entity Relations through a .CSV file upload. Contact the team for assistance with this.<br>

      <div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FJQ7UdSJgFMnfxT0cNPhz%2Fimage.png?alt=media&amp;token=9e9573b7-12f3-40a1-9a8d-103d325a990f" alt=""><figcaption></figcaption></figure></div>
4. Click on next to move onto *Optional Configuration.*
5. Fill **Optional configuration,** if required.

   <figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FWwMwzBtDCwYSplMbZBtP%2Fimage.png?alt=media&amp;token=0d22f002-4d7b-4d31-84c0-31b50ca63edd" alt="" width="563"><figcaption></figcaption></figure>
6. Once you filled in the information, click **Save**. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the *Integrations* page. When data is available, the integration Status will read **Connected** and the integration Message will read **Data available**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integrations/datadog-integration-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
