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
- You read Send traces, metrics and logs to your tool.
- A Datadog Agent that the Databrain backend can reach, and your Datadog API key and site.
Steps
-
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=trueLogs need both
DD_LOGS_ENABLEDandDD_OTLP_CONFIG_LOGS_ENABLED. -
Set these on the Databrain backend and restart it:
OTEL_ENABLED=true OTEL_EXPORTER_OTLP_ENDPOINT=http://datadog-agent:4318Use 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.