Integrate with Datadog
Support level: Community
What is Datadog
Datadog is a monitoring and analytics platform for cloud-scale applications. It provides monitoring of servers, databases, tools, and services through a SaaS-based data analytics platform.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.
Datadog has multiple regional endpoints. This guide uses US5 (us5.datadoghq.com) as an example. Replace the Datadog URLs with your region's endpoint as needed:
| Region | Site URL |
|---|---|
| US1 | datadoghq.com |
| US3 | us3.datadoghq.com |
| US5 | us5.datadoghq.com |
| EU | datadoghq.eu |
| AP1 | ap1.datadoghq.com |
| US1-FED | ddog-gov.com |
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
authentik configuration
To support the integration of Datadog with authentik, you need to create an application/provider pair in authentik.
Create an application and provider in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Set the ACS URL to
https://us5.datadoghq.com/account/saml/assertion. - Set the Issuer to
https://us5.datadoghq.com/account/saml/metadata.xml. - Set the Service Provider Binding to
Post. - Under Advanced protocol settings, set Signing Certificate to any available certificate.
- Enable Sign assertions.
- Enable Sign responses.
- Set NameID Property Mapping to
authentik default SAML Mapping: Email.
- Set the ACS URL to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's My applications page.
-
Click Submit to save the new application and provider.
Download metadata file
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and click on the name of the newly created Datadog provider.
- Under Related objects > Metadata, click Download. This metadata file will be required in the next section.
Datadog configuration
- Log in to Datadog as an administrator.
- Hover over your email address in the bottom left of the sidebar and click Organization Settings.
- Navigate to Login Methods, click Configure next to SAML, then click Add SAML.
- Name: enter a descriptive name (e.g.
authentik). - IdP Metadata: click Choose file and upload the authentik metadata file downloaded in the previous section.
- Identity Provider (IdP) Initiated Login: Allows login directly from authentik. Toggle as desired.
- Name: enter a descriptive name (e.g.
- Click Save.
Configuration verification
To confirm that authentik is properly configured with Datadog, first log out, then navigate to the Datadog login page and click Using Single Sign-On?. Enter your email address and click Next. You should be redirected to authentik, and after you authenticate, you will be redirected back to Datadog.
When logging in via SP-initiated login, Datadog may send a one-time email verification code. This is normal security behavior.