# 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="/files/FAn3l2BF1eCH9xQ9ZC44" 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="/files/TuYpy5Qkvyj8DsKBfLWD" 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="/files/06jDLB0cugvpqQvfH5hO" 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apica.io/fleet-management/list-of-agents/grafana-alloy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
