---
title: "Alloy OpenTelemetry Engine scenarios | Grafana Alloy documentation"
description: "Runnable scenarios that use the Alloy OpenTelemetry Engine to run OpenTelemetry Collector configurations"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Alloy OpenTelemetry Engine scenarios

> **Public preview**: OTel Engine is a [public preview](https://grafana.com/docs/release-life-cycle/) feature. Public preview features are subject to breaking changes, and may be replaced with equivalent functionality that covers the same use case.
> 
> To maintain full compatibility of the OTel Engine with the upstream OpenTelemetry Collector and expose a compatible command line interface, the OTel Engine isn’t hidden behind a stability [flag](https://grafana.com/docs/alloy/latest/reference/cli/run/).

The OTel Engine scenarios run OpenTelemetry Collector YAML configurations without converting them to Alloy configuration syntax.

Expand table

| Scenario                                                                                                           | Description                                                                                                                                                          |
|--------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Cost control](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/cost-control)                    | Drop health checks, filter debug logs, and apply probabilistic sampling to cut telemetry volume.                                                                     |
| [Count connector](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/count-connector)              | Derive request rate and error rate metrics from traces and logs with the `count` connector.                                                                          |
| [File log processing](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/filelog-processing)       | Collect and parse mixed-format log files with the OTel `filelog` receiver and operator chains.                                                                       |
| [Host metrics](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/host-metrics)                    | Collect CPU, memory, disk, and network metrics with the `hostmetrics` receiver.                                                                                      |
| [Kafka buffer](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/kafka-buffer)                    | Buffer traces through Kafka for durability and `backpressure` control.                                                                                               |
| [Multi-pipeline fan-out](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/multi-pipeline-fanout) | Send traces to two backends. Each destination runs its own process path.                                                                                             |
| [Multi-tenant routing](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/routing-multi-tenant)    | Route logs to different Loki tenants based on resource attributes with fan-out and filter.                                                                           |
| [OTTL transform cookbook](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/ottl-transform)       | A cookbook of OpenTelemetry Transformation Language patterns for JSON parsing, severity mapping, attribute promotion, and truncation.                                |
| [PII redaction](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/pii-redaction)                  | Scrub personally identifiable information, credit cards, emails, and IP addresses from traces and logs with OpenTelemetry Transformation Language `replace_pattern`. |
| [Resource enrichment](https://github.com/grafana/alloy-scenarios/tree/main/otel-examples/resource-enrichment)      | Attach host, OS, and Docker metadata to all signals with `resourcedetection`.                                                                                        |

Refer to the [alloy-scenarios](https://github.com/grafana/alloy-scenarios) repository for the full list of scenarios.
