Menu
Open source
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.
shell
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.
debian-ubuntusudo 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
rhel-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 sslcacert=/etc/pki/tls/certs/ca-bundle.crt' | sudo tee /etc/yum.repos.d/grafana.repo
suse-opensusewget -q -O gpg.key https://rpm.grafana.com/gpg.key sudo rpm --import gpg.key sudo zypper addrepo https://rpm.grafana.com grafana
Update the repositories.
debian-ubuntusudo apt-get update
rhel-fedorayum update
suse-opensusesudo zypper update
Install Alloy.
debian-ubuntusudo apt-get install alloy
rhel-fedorasudo dnf install alloy
suse-opensusesudo zypper 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 alloy
Uninstall Alloy.
debian-ubuntusudo apt-get remove alloy
rhel-fedorasudo dnf remove alloy
suse-opensusesudo zypper remove alloy
Optional: Remove the Grafana repository.
debian-ubuntusudo rm -i /etc/apt/sources.list.d/grafana.list
rhel-fedorasudo rm -i /etc/yum.repos.d/rpm.grafana.repo
suse-opensusesudo zypper removerepo grafana
Next steps
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video
Optimizing Kubernetes Operations with Grafana Cloud
Join us for an insightful Grafana Cloud webinar dedicated to advanced Kubernetes monitoring techniques.
Video
Incident management with Grafana IRM & SLOS in Grafana Cloud
This webinar shows you how to prioritize critical resources through service level objective(SLO)-driven incident response and management (IRM).