How to export telemetry to the OTEL collector
This guide explains how to export Aidbox telemetry in OpenTelemetry format
Aidbox produces three types of signals: logs, metrics and traces in OTEL specification.
Aidbox supports exporting telemetry using the Protobuf protocol in line with the OTEL specification. This guide configures Aidbox to export telemetry to the OpenTelemetry collector, but the setup can also be modified to export to other telemetry consumers that adhere to this specification.
Prerequisites
OTEL collector should be deployed and configured to receive logs, metrics and traces.
Aidbox should be configured with Aidbox configuration project.
How to enable export telemetry to the OTEL collector
To enable exporting telemetry to the OTEL collector:
Import
aidbox.log
,aidbox.telemetry.metrics
,aidbox.telemetry.trace
Define
open-telemetry-appender
,open-telemetry-metrics-exporter
,otel-trace-exporter
Add
otel-appender
to the servicesRestart Aidbox
How to check the OTEL collector receives telemetry
Set up logging
exporter and logs
, metrics
, traces
pipelines in the OTEL collector configuration:
logging
exporter and logs
, metrics
, traces
pipelines in the OTEL collector configuration:Run any request in Aidbox
Use Aidbox REST console to perform a request like this:
See Aidbox telemetry in the OTEL collector stdout
Open OTEL collector stdout and see the logs, metrics and traces.
Last updated