Open Guillaumebeuzeboc opened 11 months ago
Grafana agent supports multiple modes.
The current snap only supports the use of the static mode.
The Flow mode is now stable for the Grafana agent and appears to be the modern way of Grafana agent configuration.
The mode can be selected by setting the environment variable AGENT_MODE to flow.
AGENT_MODE
flow
The current snap already embeds the Flow mode, but the Flow mode is not exposed.
The Flow mode uses a river config file instead of a YAML.
river
YAML
Ideally, the Grafana agent snap could be configured with something similar to:
snap set grafana-agent agent-mode=flow
Grafana agent supports multiple modes.
The current snap only supports the use of the static mode.
The Flow mode is now stable for the Grafana agent and appears to be the modern way of Grafana agent configuration.
The mode can be selected by setting the environment variable
AGENT_MODE
toflow
.The current snap already embeds the Flow mode, but the Flow mode is not exposed.
The Flow mode uses a
river
config file instead of aYAML
.Ideally, the Grafana agent snap could be configured with something similar to: