Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/send-data/alloy/set-up/install/linux.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/send-data/alloy/set-up/install/linux/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Install Grafana Alloy on Linux
Grafana Learning Paths provide a clear, structured path that leads you from beginner concepts to advanced use cases. Learn about this Grafana feature on Monitor a Linux server in Grafana Cloud.
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 gpgInstall
To install Alloy on Linux, run the following commands in a terminal window.
Import the GPG key and add the Grafana package repository.
Debian-Ubuntusudo mkdir -p /etc/apt/keyrings sudo wget -O /etc/apt/keyrings/grafana.asc https://apt.grafana.com/gpg-full.key sudo chmod 644 /etc/apt/keyrings/grafana.asc echo "deb [signed-by=/etc/apt/keyrings/grafana.asc] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.listRHEL-Fedorawget -q -O gpg.key https://rpm.grafana.com/gpg.key sudo rpm --import gpg.key echo -e '[grafana]\nname=grafana\nbaseurl=https://rpm.grafana.com\nrepo_gpgcheck=1\nenabled=1\ngpgcheck=1\ngpgkey=https://rpm.grafana.com/gpg.key\nsslverify=1\nsslcacert=/etc/pki/tls/certs/ca-bundle.crt' | sudo tee /etc/yum.repos.d/grafana.repoSUSE-openSUSEwget -q -O gpg.key https://rpm.grafana.com/gpg.key sudo rpm --import gpg.key sudo zypper addrepo https://rpm.grafana.com grafanaUpdate the repositories.
Debian-Ubuntusudo apt-get updateRHEL-Fedorayum updateSUSE-openSUSEsudo zypper updateInstall Alloy.
Debian-Ubuntusudo apt-get install alloyRHEL-Fedorasudo dnf install alloySUSE-openSUSEsudo zypper -r grafana install alloy
Uninstall
To uninstall Alloy on Linux, run the following commands in a terminal window.
Stop the systemd service for Alloy.
All-distrossudo systemctl stop alloyUninstall Alloy.
Debian-Ubuntusudo apt-get remove alloyRHEL-Fedorasudo dnf remove alloySUSE-openSUSEsudo zypper remove alloyOptional: Remove the Grafana repository.
Debian-Ubuntusudo rm -i /etc/apt/sources.list.d/grafana.listRHEL-Fedorasudo rm -i /etc/yum.repos.d/grafana.repoSUSE-openSUSEsudo zypper removerepo grafana
Next steps
Was this page helpful?
Related resources from Grafana Labs


