Skip to Content

Observability & Monitoring

Send Databrain data to Datadog

Send traces, metrics and logs from a self-hosted Databrain backend to Datadog.

The Datadog Agent can take OTLP/HTTP directly, so you do not need a separate Collector.

Before you start

Steps

  1. Turn on OTLP in the Datadog Agent. For the Agent container, set:

    DD_API_KEY=<your-api-key>
    DD_SITE=<your-site>            # for example datadoghq.com or datadoghq.eu
    DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT=0.0.0.0:4318
    DD_LOGS_ENABLED=true
    DD_OTLP_CONFIG_LOGS_ENABLED=true

    Logs need both DD_LOGS_ENABLED and DD_OTLP_CONFIG_LOGS_ENABLED.

  2. Set these on the Databrain backend and restart it:

    OTEL_ENABLED=true
    OTEL_EXPORTER_OTLP_ENDPOINT=http://datadog-agent:4318

    Use the Agent’s address, not the Datadog API address.

Check it

In Datadog, open APM > Services. databrain-api shows up after a few requests. Logs are in Logs under service:databrain-api, and metrics such as databrain.http.requests in Metrics.

If nothing arrives, run agent status and look for the OTLP receiver, then see Observability setup. Datadog reference: OTLP ingestion in the Agent.