Looking for a managed OpenTelemetry collector? Azure Monitor pipeline now does the job
Managed OpenTelemetry Collector with Azure Monitor
Youโve accomplished a lot by integrating OpenTelemetry into your applications and AI agents. With its help, you can capture logs, metrics, traces, and events without being tied to any specific vendor SDK. Whatโs even better? These signals allow both humans and agents to understand systems better, providing valuable context for troubleshooting and action. However, a significant hurdle frequently overlooked is the management of the collector or gateway tier yourself โ the infrastructure you need to build and scale, harmonising multiple exporter settings, and ensuring the right credentials, certificates, and buffers are consistently configured as new teams onboard.
Many of you have expressed the need for a managed OpenTelemetry collector. Until now, you were responsible for the layer connecting your instrumented applications and agents with Azure Monitor. Thankfully, thatโs changed. Azure Monitor will now handle this for you.
Overview
- Managed collection layer: The Azure Monitor pipeline receives, processes, and exports OTLP logs, metrics, and traces โ essentially taking care of the tasks you’d typically manage with an OpenTelemetry Collector gateway. This is now available in public preview.
- Central configuration: Set up data collection rules (DCRs) in Azure instead of dealing with file configurations. This enables you to define listeners, processing methods, and routing centrally. Just change one rule instead of adjusting every gateway.
- Security is prioritised: The OTLP listener employs mutual TLS with automatically provisioned certificates, while managed identity takes care of authentication to Azure Monitor.
- Cost-effective filtering: KQL transformations allow you to refine noisy logs before they leave your environment, helping you save on costs.
- Resilience during outages: Persistent storage buffers telemetry during restarts or outages and automatically backfills it afterwards.
- Powered by community-driven code: Built on the OpenTelemetry Arrow Dataflow Engine, a Rust-based engine created collaboratively in the OpenTelemetry community.
- No extra costs: You won’t incur additional charges for using the pipeline itself.
OpenTelemetry and Azure Monitor Integration
OpenTelemetry is a community-led standard that is vendor-neutral, meaning your instrumentation remains unchanged. The Azure Monitor pipeline communicates using the standard OTLP, meaning any OpenTelemetry SDK can send data to it. Existing OpenTelemetry Collectors that you may already have can also forward telemetry from your devices, VMs, or on-premises environments.
For applications, the standard OTLP exporter settings are as follows:
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otel-pipeline.contoso.internal:4317" export OTEL_EXPORTER_OTLP_PROTOCOL="grpc" export OTEL_EXPORTER_OTLP_CERTIFICATE="/etc/otel/pipeline-ca.pem" export OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE="/etc/otel/client.pem" export OTEL_EXPORTER_OTLP_CLIENT_KEY="/etc/otel/client-key.pem"
With Azure Monitor managing the pipeline, it runs as an extension on your Arc-enabled Kubernetes cluster, positioned near your workloads. Configuration resides in Azure under data collection rules, allowing for unified settings for listeners and TLS, alongside data flow rules for determining what to collect and where to send it. Simply update a rule, and all associated pipelines will automatically adapt to the change. No more needing to roll out configurations individually for each gateway!
Key Benefits of Azure Monitor Pipeline
- Receive and filter three different signals: Prioritise the valuable data while discarding the noise.
- Automatic recovery: Ride out brief outages and restarts comfortably, with backfilling to ensure nothing crucial is missed.
- Developed for high-volume telemetry: The Azure Monitor pipeline utilises the OpenTelemetry Arrow Dataflow Engine, designed to handle extensive telemetry with ease.
What You Need to Know
Frequently Asked Questions
Is this a managed OpenTelemetry Collector?
Yes, it performs the same functions as a traditional Collector deployed as a gateway, processing and exporting OTLP data, while being managed by Azure Monitor. Itโs based on the OpenTelemetry Arrow Dataflow Engine instead of the Go-based OpenTelemetry Collector. If you’re already utilising Collectors as agents or sidecars, feel free to keep them and direct their OTLP exporter to the Azure pipeline.
What are the costs involved?
Utilising the Azure Monitor pipeline doesnโt come with additional charges; instead, you only pay for the underlying infrastructure and the data ingested.
Where does it operate?
In this current preview phase, it operates on Arc-enabled Kubernetes clusters located in your data centre, at the edge, or within another cloud environment. You manage the cluster, while Azure Monitor oversees the pipeline. Configuration is achievable via the Azure CLI or ARM templates.
What features are currently available?
Syslog and CEF collection in the Azure Monitor pipeline is fully available, while OTLP logs, metrics, and traces are still in the public preview phase.
Steps to Get Started
Want to kick things off? Hereโs a simple guide:
- Prepare your cluster: Install the Certificate Manager extension followed by the Azure Monitor pipeline extension on your Arc-enabled Kubernetes cluster.
- Deploy the OTel template: Follow the ARM template guide to create your settings and data flow rules for logs, metrics, and traces.
- Point your exporters: Set the OTEL_EXPORTER_OTLP_ENDPOINT on your application or Collector to the pipeline’s listener.
- Query your data: Access spans in OTelSpans, logs in OTelLogs, and metrics in your Azure Monitor workspace.
Ready to dive in? Start with collecting OpenTelemetry logs, metrics, and traces with Azure Monitor pipeline.
For filtering your data, check out Azure Monitor pipeline transformations.
To grasp the bigger picture, visit What is Azure Monitor pipeline?.
Weโd love to hear about your experience! Feel free to reach out via email at [email protected], sharing which signals you’re sending and how much complexity you’ve been able to reduce.
Bring your OpenTelemetry experience over; weโll take care of managing the pipeline for you!
Share this content:
Discover more from Qureshi
Subscribe to get the latest posts sent to your email.