------Upgrade guide
This guide describes required steps when upgrading from older versions of Grafana Agent Flow.
NOTE: This upgrade guide is specific to Grafana Agent Flow. Other upgrade guides for the different Grafana Agent variants are contained on separate pages:
[Static mode upgrade guide][upgrade-guide-static]
[Static mode Kubernetes operator upgrade guide][upgrade-guide-operator]
[upgrade-guide-static]: {{< relref "../static/upgrade-guide.md" >}} [upgrade-guide-operator]: {{< relref "../operator/upgrade-guide.md" >}}
v0.33
Symbolic links in Docker containers removed
We've removed the deprecated symbolic links to /bin/agent* in Docker containers, as planned in v0.31. In case you're setting a custom entrypoint, use the new binaries that are prefixed with /bin/grafana*.
v0.32
Breaking change: http_client_config Flow blocks merged with parent blocks
To reduce the amount of typing required to write Flow components, the arguments and subblocks found in http_client_config have been merged with their parent blocks:
discovery.docker > http_client_configis merged into thediscovery.dockerblock.discovery.kubernetes > http_client_configis merged into thediscovery.kubernetesblock.loki.source.kubernetes > client > http_client_configis merged into theclientblock.loki.source.podlogs > client > http_client_configis merged into theclientblock.loki.write > endpoint > http_client_configis merged into theendpointblock.mimir.rules.kubernetes > http_client_configis merged into themimir.rules.kubernetesblock.otelcol.receiver.opencensus > grpcis merged into theotelcol.receiver.opencensusblock.otelcol.receiver.zipkin > httpis merged into theotelcol.receiver.zipkinblock.phlare.scrape > http_client_configis merged into thephlare.scrapeblock.phlare.write > endpoint > http_client_configis merged into theendpointblock.prometheus.remote_write > endpoint > http_client_configis merged into theendpointblock.prometheus.scrape > http_client_configis merged into theprometheus.scrapeblock.
Old configuration example:
New configuration example:
Breaking change: loki.process stage blocks combined into new blocks
Previously, to add a stage to loki.process, two blocks were needed: a block called stage, then an inner block for the stage being written. Stage blocks are now a single block called stage.STAGENAME.
Old configuration example:
New configuration example:
Breaking change: client_options block renamed in remote.s3 component
To synchronize naming conventions between remote.s3 and remote.http, the client_options block has been renamed client.
Old configuration example:
New configuration example:
Breaking change: prometheus.integration.node_exporter component name changed
The prometheus.integration.node_exporter component has been renamed to prometheus.exporter.unix. unix was chosen as a name to approximate the *nix-like systems the exporter supports.
Old configuration example:
New configuration example:
Breaking change: support for EXPERIMENTAL_ENABLE_FLOW environment variable removed
As first announced in v0.30.0, support for using the EXPERIMENTAL_ENABLE_FLOW environment variable to enable Flow mode has been removed.
To enable Flow mode, set the AGENT_MODE environment variable to flow.
v0.31
Breaking change: binary names are now prefixed with grafana-
As first announced in v0.29, the agent release binary name is now prefixed with grafana-:
agentis nowgrafana-agent.
For the grafana/agent Docker container, the entrypoint is now /bin/grafana-agent. A symbolic link from /bin/agent to the new binary has been added.
Symbolic links will be removed in v0.33. Custom entrypoints must be updated prior to v0.33 to use the new binaries before the symbolic links get removed.
v0.30
Deprecation: EXPERIMENTAL_ENABLE_FLOW environment variable changed
As part of graduating Grafana Agent Flow to beta, the EXPERIMENTAL_ENABLE_FLOW environment variable is replaced by setting AGENT_MODE to flow.
Setting EXPERIMENTAL_ENABLE_FLOW to 1 or true is now deprecated and support for it will be removed for the v0.32 release.
v0.29
Deprecation: binary names will be prefixed with grafana- in v0.31.0
The binary name agent has been deprecated and will be renamed to grafana-agent in the v0.31.0 release.
As part of this change, the Docker containers for the v0.31.0 release will include symbolic links from the old binary names to the new binary names.
There is no action to take at this time.