Skip to content
Athrael.net logo Athrael.net
Go back

Crazy good Observability using Grafana Alloy

Edit page

alt text

🚀 Hey there!

Super excited to share this example, as I’ve had a ton of fun putting it together. It sets up a complete Grafana Alloy observability stack with just a few commands and Docker compose. The environment is pre-configured with datasources and dashboards for monitoring Grafana Alloy.

If you want to skip this guide and jump straight to the code, here you go: https://github.com/athrael-soju/grafana-alloy-example.

My inspiration comes from the official Grafana Alloy project example, which unfortunately isn’t working right now. So, I decided to fix and improve it. You can find the original project here.

Prerequisites

Ensure that Docker and Docker Compose are installed and running on your system.

NOTE: This environment is not intended for production use, and is maintained on a best-effort basis.

By default, only Grafana and databases are exposed:

Grafana is automatically provisioned with the appropriate datasources and dashboards for monitoring Grafana Alloy.

Running Alloy

Alloy can either be run locally or within Docker Compose. The example configuration can be used to send self-monitoring data from a local Alloy to the various databases running in Docker Compose.

To run Alloy within Docker Compose, pass --profile=alloy to docker compose when starting and stopping the environment:

docker compose --profile=alloy up -d
docker compose --profile=alloy down

Usage

Just a note

That’s it!

You now have a fully functional Grafana Alloy Observability Stack running on your local machine. Feel free to explore the various services and dashboards to monitor your applications and infrastructure.

If you have any questions or feedback, please let me know!


Edit page
Share this post on:

Previous Post
GraphRAG with Qdrant, Neo4j, and Ollama (Using Qwen2.5:3b and Nomic text embeddings)
Next Post
Superfast Telemetry Setup for Next.js with OpenTelemetry, Prometheus, and Grafana