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.
Configure Grafana Agent in flow mode on Windows
To configure Grafana Agent in flow mode on Windows, perform the following steps:
Edit the default configuration file at
C:\Program Files\Grafana Agent Flow\config.river
.Restart the Grafana Agent service:
Open the Windows Services manager (
services.msc
):Right click on the Start Menu and select Run.
Type
services.msc
and click OK.
Right click on the service called Grafana Agent Flow.
Click on All Tasks > Restart.
Change command-line arguments
By default, the Grafana Agent service will launch and pass the following arguments to the Grafana Agent binary:
run
C:\Program Files\Grafana Agent Flow\config.river
--storage.path=C:\ProgramData\Grafana Agent Flow\data
To change the set of command-line arguments passed to the Grafana Agent binary, perform the following steps:
Open the Registry Editor:
Right click on the Start Menu and select Run.
Type
regedit
and click OK.
Navigate to the key at the path
HKEY_LOCAL_MACHINE\SOFTWARE\Grafana\Grafana Agent Flow
.Double-click on the value called Arguments*.
In the dialog box, enter the new set of arguments to pass to the Grafana Agent binary.
Restart the Grafana Agent service:
Open the Windows Services manager (
services.msc
):Right click on the Start Menu and select Run.
Type
services.msc
and click OK.
Right click on the service called Grafana Agent Flow.
Click on All Tasks > Restart.
Expose the UI to other machines
By default, Grafana Agent listens on the local network for its HTTP server. This prevents other machines on the network from being able to access the UI for debugging.
To expose the UI to other machines, complete the following steps:
Follow Change command-line arguments to edit command line flags passed to Grafana Agent, including the following customizations:
Add the following command line argument:
--server.http.listen-addr=LISTEN_ADDR:12345
Replace
LISTEN_ADDR
with an address which other machines on the network have access to, like the network IP address of the machine Grafana Agent is running on.To listen on all interfaces, replace
LISTEN_ADDR
with0.0.0.0
.