Datadog

Rocketgraph reads your Datadog APM metrics, error logs and service map to detect and explain problems.

Connect Datadog and Rocketgraph reads request counts, errors and latency for every APM service, plus the error logs of a service that alerts.

Connect

  1. Open Connect and click Datadog under Observability.
  2. Site: the domain you sign in at, without app. in front. For example datadoghq.com, us3.datadoghq.com or datadoghq.eu. Fill this in first, so the buttons below open the right site.
  3. API key: in Datadog, open Organization Settings → API Keys and create a key. The Open Datadog API keys button takes you there.
  4. Application key: on the same page, open Application Keys and create one. Read access to metrics, logs and APM is enough. The Open Datadog application keys button takes you there.
  5. Click Connect Datadog. Rocketgraph checks both keys before it saves anything.

An application key has the permissions of the user who made it. If you can, scope it to timeseries_query, logs_read_data and apm_read.

What Rocketgraph reads

All calls are reads.

  • GET /api/v1/validate to check the API key.
  • GET /api/v1/query for three APM metrics, grouped by service, in one request each:
  • trace.http.request.hits
  • trace.http.request.errors
  • trace.http.request.duration (p95)
  • POST /api/v2/logs/events/search and POST /api/v2/logs/analytics/aggregate for log lines. For a service that alerts, Rocketgraph reads its error and warning lines and groups them into patterns itself.
  • GET /api/v1/service_dependencies for the APM service map.

Known limits

  • Services come from APM. A metrics-only account with no trace.http.request.* metrics will connect but show no services.
  • The service map is read for the prod environment.
  • Rocketgraph reads from one observability backend at a time. Connecting Datadog replaces the one you had.

Disconnect

There is no disconnect button for an observability backend. Connecting a different one replaces Datadog. To cut off access, revoke the application key and API key in Datadog.