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 resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
GrafanaCON 2024 Keynote Recap
Catch up on GrafanaCON 2024 highlights! Explore Grafana 11 features, LGTM Stack innovations, and community achievements in this recap webinar.
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Getting started with Grafana dashboard design
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.