Observability & Monitoring
Send Databrain data to New Relic
Send traces, metrics and logs from a self-hosted Databrain backend to New Relic.
Before you start
- You read Send traces, metrics and logs to your tool.
- A New Relic license key (ingest key) for your account.
Steps
-
Run an OpenTelemetry Collector (
otel/opentelemetry-collector-contrib) with this config. SetNEW_RELIC_LICENSE_KEYon the Collector. For an EU account, usehttps://otlp.eu01.nr-data.net:4318.receivers: otlp: protocols: http: endpoint: 0.0.0.0:4318 processors: batch: {} exporters: otlphttp/newrelic: endpoint: https://otlp.nr-data.net:4318 headers: api-key: ${env:NEW_RELIC_LICENSE_KEY} service: pipelines: traces: receivers: [otlp] processors: [batch] exporters: [otlphttp/newrelic] metrics: receivers: [otlp] processors: [batch] exporters: [otlphttp/newrelic] logs: receivers: [otlp] processors: [batch] exporters: [otlphttp/newrelic] -
Set these on the Databrain backend and restart it:
OTEL_ENABLED=true OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
Check it
In New Relic, open APM & Services. databrain-api shows up as an OpenTelemetry service after a few requests.
If nothing arrives, check the Collector log first, then see Observability setup. New Relic reference: New Relic OTLP endpoint.