3. Internal architecture #
Components, services, and the Directed Acyclic Graph (DAG).
The DAG at the core of the system #
Alloy's internal architecture is based on a Directed Acyclic Graph (DAG). Each configuration block (e.g., discovery, scraping, forwarding) is a component (a node in the graph). Alloy automatically determines the execution order and dependencies between these components. If the configuration changes, only the affected components are reloaded, without restarting the whole process.
Best Practice: Favor splitting your configurations into multiple small River files rather than one huge file. Alloy can load an entire directory, which facilitates organization by team or domain.
Common Mistake: Manually restarting the service (systemctl restart alloy) for every configuration change. Use the hot-reload API instead to apply changes without service interruption.# Loading an entire directory (more modular)
alloy run /etc/alloy/config.d/
# Hot-reloading the configuration
curl -X POST http://localhost:12345/-/reloadMy progress
Sign in to track your progress and take notes. Sign in
Course Glossary
Grafana Alloy
An open-source, vendor-neutral telemetry collector designed to replace Grafana Agent, fully compatible with OpenTelemetry (OTel).
Recommended Articles
Grafana Alloy: Syntax and Configuration (Alloy Language: River)
As part of a Grafana training or observability training, master the declarative syntax of Grafana...
Référence des Composants Grafana Alloy
Un guide de référence complet sur tous les composants disponibles dans Grafana Alloy, organisé pa...
Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)
Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...
Grafana Alloy: Log Management with Loki
Discover how to configure Grafana Alloy to read log files, journald, or network streams, process ...
Grafana Alloy: Continuous Profiling with Pyroscope
Discover how to configure continuous profiling in your environments using Grafana Alloy and Pyros...
Grafana Alloy: Advanced Deployment and Clustering
Learn how to manage large-scale Grafana Alloy deployments. Configure Clustering mode for high ava...
Bonnes Pratiques Grafana Alloy : Optimiser sa Collecte de Télémétrie
Découvrez les règles d'or pour configurer Grafana Alloy de manière robuste : modularité, gestion ...
Grafana Alloy : Collecter les métriques système et les logs locaux
Découvrez comment configurer Grafana Alloy pour superviser le serveur sur lequel il s'exécute, av...
Grafana Alloy: Trace Management with Tempo
Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or Zipkin traces with G...