Install Grafana Alloy
The steps in this milestone install Alloy as a system service. You can also install Alloy as a standalone binary. Refer to Run Grafana Alloy as a standalone binary for the procedure.
To install Alloy, complete the following steps:
Download the appropriate Grafana Alloy package for your operating system from the Grafana Alloy releases page.
Install Grafana Alloy using your system’s package manager or installation method. If the method you are using isn’t listed, refer to Install Grafana Alloy.
Navigate to the latest release on GitHub.
Scroll down to the Assets section.
Download the DEB package file that matches your system architecture.
Install the package:
sudo dpkg -i alloy-*.deb
Navigate to the latest release on GitHub.
Scroll down to the Assets section.
Download the RPM package file that matches your system architecture.
Install the package:
sudo rpm -i alloy-*.rpm
You can install Alloy on macOS with Homebrew.
Add the Grafana Homebrew tap:
brew tap grafana/grafanaInstall Alloy:
brew install grafana/grafana/alloy
Pull the latest Grafana Alloy Docker image:
docker pull grafana/alloy:latestCreate and save an Alloy configuration file on your computer, for example:
logging { level = "info" format = "logfmt" }Run the Grafana Alloy Docker container, replacing
<CONFIG_FILE_PATH>:docker run \ -v <CONFIG_FILE_PATH>:/etc/alloy/config.alloy \ -p 12345:12345 \ -p 4318:4318 \ -p 4317:4317 \ --name grafana-alloy \ grafana/alloy:latest \ run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data \ /etc/alloy/config.alloy
- Navigate to the latest release on GitHub.
- Scroll down to the Assets section.
- Download the file called
alloy-installer-windows-amd64.exe.zip. - Extract the downloaded file.
- Double-click on
alloy-installer-windows-amd64.exeto install Alloy.
Run Alloy and verify the installation
Alloy should run as a system service or inside a Docker container. Use these steps to confirm Alloy is installed correctly.
Run Alloy and verify the service status is running, if installed as a system service:
Start Alloy:
sudo systemctl start alloyVerify Alloy is running:
sudo systemctl status alloy
Start Alloy:
brew services start grafana/grafana/alloyVerify Alloy is running:
brew services info grafana/grafana/alloy
Open the Windows Services manager:
- Right click on the Start Menu and select Run.
- Type:
services.mscand click OK.
Scroll down to find the Alloy service and verify that the Status is Running.
If you are using Docker or just want an extra sanity check that Alloy is running successfully, navigate to
http://localhost:12345and make sure the Alloy UI loads without error.
At this point in your journey, you can explore the following paths:
