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/scenarios/run-a-scenario.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/send-data/alloy/scenarios/run-a-scenario/. 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.
Run a scenario
Every scenario is in the alloy-scenarios repository. Each scenario directory has its own configuration, backends, and README.
Before you begin
Ensure you have the following:
- Docker and Docker Compose for Docker-based scenarios
- Git
- kind, kubectl, and Helm for Kubernetes scenarios
Start a Docker-based scenario
Clone the repository and change to its root directory:
shellgit clone https://github.com/grafana/alloy-scenarios.git cd alloy-scenariosStart the scenario with the image versions pinned in
image-versions.env:shell./run-example.sh <SCENARIO_DIRECTORY>Replace
<SCENARIO_DIRECTORY>with the scenario path, for examplelogs-file.Open Grafana at http://localhost:3000 and the Alloy UI at http://localhost:12345. You don’t need to log in to Grafana. Refer to the scenario README for additional endpoints.
Stop a scenario
From the repository root, run:
cd <SCENARIO_DIRECTORY> && docker compose downStart a Kubernetes scenario
Kubernetes scenarios are in the k8s/ directory.
Follow the README in the scenario directory.
Was this page helpful?
Related resources from Grafana Labs


