Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/send-data/alloy/reference/cli/otel.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/send-data/alloy/reference/cli/otel/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
otel
EXPERIMENTAL: This is an experimental feature. Experimental features are subject to frequent breaking changes, and may be removed with no equivalent replacement.
The otel command runs Alloy with the OTel Engine.
This command accepts OpenTelemetry Collector YAML configuration files.
The OTel Engine includes receivers, processors, exporters, extensions, and connectors from the OpenTelemetry Collector core and contrib repositories. This includes components for OTLP, Prometheus, Kafka, Zipkin, and other popular integrations.
As with the run command, this runs in the foreground until an interrupt is received.
Usage
alloy otel --config=<CONFIG_FILE> [<FLAGS> ...] Replace the following:
<CONFIG_FILE>: Path to an OpenTelemetry Collector configuration file.<FLAGS>: One or more flags that configure the OpenTelemetry Collector. These flags are the same as upstream. Runalloy otel --helpto show the complete list of supported flags.
Configuration
The otel command accepts standard OpenTelemetry Collector YAML configuration files.
The configuration file defines receivers, processors, exporters, and other components that make up your telemetry pipeline.
Run the Default Engine in parallel
The OTel Engine includes the option to run pipelines with the Default Engine alongside the OTel Engine. Use the built-in Alloy Engine extension to enable this.
This runs a Default Engine pipeline in parallel to the OTel Engine pipeline. The two pipelines can’t natively interact.
Examples
Refer to The OpenTelemetry Engine for examples that show you how to run the OTel Engine and Alloy Engine extension.
Related documentation
- OpenTelemetry Collector documentation: Official OpenTelemetry Collector documentation.
Was this page helpful?
Related resources from Grafana Labs


