This is documentation for the next version of Alloy. For the latest stable release, go to the latest version.
Configure Grafana Alloy on Windows
To configure Alloy on Windows, perform the following steps:
Edit the default configuration file at
%PROGRAMFILES%\GrafanaLabs\Alloy\config.alloy
.Restart the Alloy service:
Open the Windows Services manager:
Right click on the Start Menu and select Run.
Type
services.msc
and click OK.
Right click on the service called Alloy.
Click on All Tasks > Restart.
Change command-line arguments
By default, the Alloy service will launch and pass the following arguments to the Alloy binary:
run
%PROGRAMFILES%\GrafanaLabs\Alloy\config.alloy
--storage.path=%PROGRAMDATA%\GrafanaLabs\Alloy\data
To change the set of command-line arguments passed to the Alloy 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\GrafanaLabs\Alloy
.Double-click on the value called Arguments*.
In the dialog box, enter the arguments to pass to the Alloy binary. Make sure that each argument is on its own line.
Restart the Alloy service:
Open the Windows Services manager:
Right click on the Start Menu and select Run.
Type
services.msc
and click OK.
Right click on the service called Alloy.
Click on All Tasks > Restart.
Change environment variable values
The Go runtime provides several ways to modify the execution of a binary using environment variables.
To change the environment variables used by Alloy, 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\GrafanaLabs\Alloy
.Double-click on the multi-string value called Environment*.
In the dialog box, enter the environment variable values to pass to the Alloy binary. Make sure that each variable is on its own line.
Restart the Alloy 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 Alloy.
Click on All Tasks > Restart.
Expose the UI to other machines
By default, Alloy 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 Alloy.
Add the following command line argument:
--server.http.listen-addr=LISTEN_ADDR:12345
Replace the following:
<LISTEN_ADDR>
: An IP address which other machines on the network have access to. For example, the IP address of the machine Alloy is running on.To listen on all interfaces, replace
<LISTEN_ADDR>
with0.0.0.0
.