Observability & Monitoring
Send Databrain data to Honeycomb
Send traces, metrics and logs from a self-hosted Databrain backend to Honeycomb.
Before you start
- You read Send traces, metrics and logs to your tool.
- A Honeycomb ingest API key for your environment.
Steps
-
Run an OpenTelemetry Collector (
otel/opentelemetry-collector-contrib) with this config. SetHONEYCOMB_API_KEYon the Collector. For the EU region, usehttps://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] -
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.