Skip to main content

Datadog

Datadog is a comprehensive cloud-scale monitoring, observability, and security platform that provides real-time visibility into infrastructure, applications, logs, and security posture. It enables organizations to monitor performance metrics, track key performance indicators (KPIs), detect security threats, analyze log data, and manage alerts across their entire technology stack.

CategoryObservability
DirectionQuery source
Sign-inAPI and Application Keys
Query languagesSTIX, SQLite
Tables12
Query templates38
Websitedatadog.com

Before you start​

Huntbase signs in to Datadog with API and Application Keys. Create the credential in Datadog first, then keep it to hand for the Connect step.

  1. In Datadog, go to Organization Settings › API Keys, click New Key, enter a name and click Create API key.
  2. Go to Organization Settings › Application Keys, click New Key, enter a name and click Create.
  3. Copy the application key immediately. If One-Time Read mode is on, you can't retrieve it later.
Watch out for
  • To create an application key for yourself you need the user_app_keys permission.
  • An application key has the permissions of the user who created it. Create it as a user with read-only access, or restrict it with scopes, to keep access least-privilege.

For the vendor's own instructions, see Datadog API and application keys documentation.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Datadog​

  1. Go to Connections and click New connection, or click New connection on the Datadog product page.
  2. On Product, pick Datadog and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your Datadog lives:

FieldRequiredNotes
Site URLYesThe URL you sign in to Datadog with, such as https://app.datadoghq.com, https://us5.datadoghq.com or https://app.datadoghq.eu.
Self-Signed Cert (PEM)NoProvide a self-signed or CA-signed certificate to securely communicate with the data source.
API URLNoThe API URL for your site. Defaults to https://api.datadoghq.com/. For the EU site, use https://api.datadoghq.eu/. Don't add /api/ to the end.

Credentials​

The only Method is API and Application Keys. Enter a Credential label (for example Production), then fill in:

FieldRequiredNotes
API KeyYesApi key of Datadog. Secret — not shown again after you save it.
Application KeyYesApplication key of Datadog. Secret — not shown again after you save it.

Query it​

Once connected, Datadog can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
STIXSTIX patterns for indicator sweeps, translated into the product's native search.
SQLiteSQL over the 12 tables listed below, alongside every other connected source.

Example: SQLite​

Datadog roles basic info — List all roles created in a Datadog account, including their names, IDs, and creation timestamps.

select
name,
id,
created_at
from
datadog_role;

Datadog ships with 38 query templates. Find them in Library › Queries — see Query templates.

Tables​

Datadog adds 12 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 12 tables
TableContains
datadog_dashboardA dashboard is Datadog’s tool for visually tracking, analyzing, and displaying key performance metrics.
datadog_hostA host is any piece of infrastructure that runs an instance of the Datadog Agent such as a bare metal instance or a VM.
datadog_integration_awsDatadog AWS integration resource.
datadog_log_eventDatadog log events are records of notable changes in your environments.
datadog_logs_metricLog-based metrics are a cost-efficient way to summarize log data from the entire ingest stream.
datadog_monitorA monitor provides alerts and notifications if a specific metric is above or below a certain threshold.
datadog_permissionPermissions provide the base level of access for roles.
datadog_roleRoles categorize users and define what account permissions those users have.
datadog_security_monitoring_ruleSecurity monitoring rules define conditional logic that is applied to all ingested logs and cloud configurations.
datadog_security_monitoring_signalSignals are threats detected based on a security monitoring rule.
datadog_service_level_objectiveAn SLO(Service Level Objective) provides a target percentage of a specific metric over a certain period of time.
datadog_userA user belongs to an organization and can be assigned roles.

Next steps​