# Grafana Alloy

The following points will tell you how to install an Alloy agent on a Linux machine:

1. Click on the 'Install Agent Manager' button at the top right corner of the Fleet page.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F0SuhHWHqN8H2M9QDDdja%2FScreenshot%20from%202024-10-10%2017-32-40.png?alt=media&#x26;token=2092ed78-8394-4779-a0c3-4c74bbd8417a" alt=""><figcaption></figcaption></figure>

2. Once the Modal Opens, choose Linux as a platform and Grafana Alloy as the agent type. On completion, click Proceed.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FnpoAwEjORaE7Vlb6QvEh%2FScreenshot%20from%202024-10-10%2017-42-42.png?alt=media&#x26;token=73fe28aa-0587-41ac-8926-f88623b1f6b7" alt=""><figcaption></figcaption></figure>

3. A modal opens with a README file and an installation file. Execute the install script to install the agent manager and the Grafana Alloy instance on the Linux Machine.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FO4jVOOvOZAJLp3IjJEG1%2FScreenshot%20from%202024-10-10%2017-46-00.png?alt=media&#x26;token=47618b39-b4c2-4a93-bc19-5bcb492dcfba" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure the install.sh script file has execute access. \
To do so, execute the following command in the directory where the install.sh file is placed:\
$ chmod +x ./install.sh
{% endhint %}

#### Check agent-manager status:

To check the status of agent-manager, and the running agents on a Linux host:

```
$ sudo systemctl status agent-manager-grafana-alloy
```

To get agent-manager logs on a Linux host:

```
$ sudo journalctl -n 100 -f -u agent-manager-grafana-alloy
```
