Path: blob/main/docs/sources/static/set-up/install-agent-linux.md
4096 views
---
---
Install static mode on Linux
Install Grafana Agent and get it up and running on Linux.
Install on Debian or Ubuntu
If your distribution supports the signed-by option, open a terminal and enter:
Otherwise, with the deprecated apt-key command:
After you add the repository, update package list:
Install Grafana Agent:
Install on RPM-based Linux (CentOS, Fedora, OpenSuse, Red Hat)
Manually create a new
.repo
file inside/etc/yum.repos.d
using a text editor:
Verify that the repository is properly configured using
yum-config-manager
:
Install Grafana Agent:
Operation guide
The Grafana Agent will be configured a systemd service after using the installation methods explained in the previous sections.
Start the Agent
To run the service you just need to type:
You can check the status of the running agent typing:
Alternately, you can configure the Grafana Agent to restart at boot:
Editing the Agent's config file
By default, the config file is located in /etc/grafana-agent.yaml
. After editing the file with the desired config, you need to restart the agent running:
Check the logs of running Agent
You can check the logs of running agent typing: