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.
Install Grafana Alloy on Linux
You can install Alloy as a systemd service on Linux.
Before you begin
Some Debian-based cloud Virtual Machines don’t have GPG installed by default. To install GPG in your Linux Virtual Machine, run the following command in a terminal window.
sudo apt install gpg
Install
To install Alloy on Linux, run the following commands in a terminal window.
Import the GPG key and add the Grafana package repository.
sudo mkdir -p /etc/apt/keyrings/ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
Update the repositories.
sudo apt-get update
Install Alloy.
sudo apt-get install alloy
Uninstall
To uninstall Alloy on Linux, run the following commands in a terminal window.
Stop the systemd service for Alloy.
sudo systemctl stop alloy
Uninstall Alloy.
sudo apt-get remove alloy
Optional: Remove the Grafana repository.
sudo rm -i /etc/apt/sources.list.d/grafana.list