How to export metrics to the OTEL collector
This guide explains how to export Aidbox metrics in OpenTelemetry format
Aidbox supports exporting metrics using the Protobuf protocol in line with the OTEL specification. This guide configures Aidbox to export metrics to the OpenTelemetry collector, but the setup can also be modified to export to other metrics consumers that adhere to this specification.
Prerequisites
OTEL collector should be deployed and configured to receive metrics.
Aidbox should be configured with Aidbox configuration project.
How to enable export metrics to the OTEL collector
To enable exporting metrics to the OTEL collector:
Import
aidbox.telemetry.metrics
Define
open-telemetry-metrics-exporter
Restart Adibox
How to check the OTEL collector receives metrics
Set up logging
exporter and metrics
pipeline in the OTEL collector configuration:
logging
exporter and metrics
pipeline in the OTEL collector configuration:See Aidbox metrics in the OTEL collector stdout
Open OTEL collector stdout and see the metrics.
Last updated