canonical / grafana-agent-snap

Snap of Grafana Agent, a telemetry collector for sending metrics, logs and traces to the Grafana's LGTM stack.
https://snapcraft.io/grafana-agent
Apache License 2.0
1 stars 5 forks source link

Flow mode support #36

Open Guillaumebeuzeboc opened 11 months ago

Guillaumebeuzeboc commented 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.

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.

Ideally, the Grafana agent snap could be configured with something similar to:

snap set grafana-agent agent-mode=flow