Skip to Content

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

Steps

  1. Run an OpenTelemetry Collector (otel/opentelemetry-collector-contrib) with this config. Set NEW_RELIC_LICENSE_KEY on the Collector. For an EU account, use https://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]
  2. 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.