Caution
Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
03 Integrations
Dynamic configuration requires the use of integrations-next
feature flag, to allow arrays of integrations. In this we will load integrations of various types. This is all built on the previous examples.
docker run -v ${PWD}/:/etc/grafana grafana/agentctl:latest template-parse file:///etc/grafana/03_config.yml
Dynamic Configuration
Tells the Grafana Agent where to load files from.
Integrations
Integrations are loaded from files matching integrations-*.yml
and are combined together. You can declare for example multiple sets of redis_configs
across several files.
Note: You do NOT have to name the above file integrations-node.yml
with node
, integrations-1.yml
would work the same. The name does NOT determine the type of integrations a template can contain and a template can contain integrations of different types.
node_exporter: {}
redis_configs:
- redis_addr: localhost:6379
autoscrape:
metric_relabel_configs:
- source_labels: [__address__]
target_label: "banana"
replacement: "apple"
- redis_addr: localhost:6380
Final
The final result should have 3 integrations enabled, 1 node_exporter and 2 redis.