Skip to Content

Observability & Monitoring

Send Databrain data to Honeycomb

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

Before you start

Steps

  1. Run an OpenTelemetry Collector (otel/opentelemetry-collector-contrib) with this config. Set HONEYCOMB_API_KEY on the Collector. For the EU region, use https://api.eu1.honeycomb.io.

    receivers:
      otlp:
        protocols:
          http:
            endpoint: 0.0.0.0:4318
    
    processors:
      batch: {}
    
    exporters:
      otlphttp/honeycomb:
        endpoint: https://api.honeycomb.io
        headers:
          x-honeycomb-team: ${env:HONEYCOMB_API_KEY}
    
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [otlphttp/honeycomb]
        metrics:
          receivers: [otlp]
          processors: [batch]
          exporters: [otlphttp/honeycomb]
        logs:
          receivers: [otlp]
          processors: [batch]
          exporters: [otlphttp/honeycomb]
  2. Set these on the Databrain backend and restart it:

    OTEL_ENABLED=true
    OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318

Check it

In Honeycomb, a dataset named databrain-api shows up after a few requests.

If nothing arrives, check the Collector log first, then see Observability setup. Honeycomb reference: Honeycomb and the OpenTelemetry Collector.