Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL Federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free

Datadog exporter (via OTLP)

Configure the Datadog exporter for metrics


Enable and configure the OTLP exporter for metrics in the or for use with Datadog.

For general tracing configuration, refer to Router Metrics Configuration.

Datadog configuration

To export metrics to Datadog, you must both:

  • Configure the Datadog agent to accept OpenTelemetry Protocol (OTLP) metrics, and
  • Configure the to send traces to the Datadog agent.

Datadog agent configuration

To configure the Datadog agent, add OTLP configuration (otlp_config) to your datadog.yaml. For example:

datadog.yaml
otlp_config:
receiver:
protocols:
grpc:
endpoint: <dd-agent-ip>:4317

Router configuration

To configure the router, enable the OTLP exporter and set both temporality: delta and endpoint: <datadog-agent-endpoint>. For example:

router.yaml
telemetry:
exporters:
metrics:
otlp:
enabled: true
# Temporality MUST be set to delta. Failure to do this will result in incorrect metrics.
temporality: delta
# Optional endpoint, either 'default' or a URL (Defaults to http://127.0.0.1:4317)
endpoint: "${env.DATADOG_AGENT_HOST}:4317"

NOTE

You must set temporality: delta, otherwise the router generates incorrect metrics.

For more details about Datadog configuration, see Datadog's docs on Agent configuration.

Previous
Configuration
Next
Dynatrace
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc., d/b/a Apollo GraphQL.

Privacy Policy

Company