Menu
This is documentation for the next version of Agent. For the latest stable release, go to the latest version.
Open source
Install or uninstall Grafana Agent Flow on Linux
You can install Grafana Agent Flow as a systemd service on Linux.
Install
To install Grafana Agent Flow 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 Grafana Agent Flow.
debian-ubuntusudo apt-get install grafana-agent-flow
rhel-fedorasudo dnf install grafana-agent-flow
suse-opensusesudo zypper install grafana-agent-flow
Uninstall
To uninstall Grafana Agent Flow on Linux, run the following commands in a terminal window.
Stop the systemd service for Grafana Agent Flow.
All-distrossudo systemctl stop grafana-agent-flow
Uninstall Grafana Agent Flow.
debian-ubuntusudo apt-get remove grafana-agent-flow
rhel-fedorasudo dnf remove grafana-agent-flow
suse-opensusesudo zypper remove grafana-agent-flow
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