Grafana Cloud
Last reviewed: November 17, 2026

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

  1. Clone the repository and change to its root directory:

    shell
    git clone https://github.com/grafana/alloy-scenarios.git
    cd alloy-scenarios
  2. Start 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 example logs-file.

  3. 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:

shell
cd <SCENARIO_DIRECTORY> && docker compose down

Start a Kubernetes scenario

Kubernetes scenarios are in the k8s/ directory. Follow the README in the scenario directory.