---
title: "Install Grafana Alloy | Grafana Labs"
description: "Install Grafana Alloy on your HAProxy server to collect and forward metrics to Grafana Cloud"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Install Grafana Alloy

Grafana Alloy is an OpenTelemetry-compatible collector that sends metrics from your HAProxy server to Grafana Cloud. Alloy supports native pipelines for Prometheus, Loki, and many other tools.

To install Alloy, you need an API token that authorizes the connection to your Grafana Cloud stack.

1. In the **Install Alloy** section, click **Run Grafana Alloy**.
2. Perform one of the following:
   
   Expand table
   
   | If you want to        | Then                                                                                                                  |
   |-----------------------|-----------------------------------------------------------------------------------------------------------------------|
   | Create a new token    | Click **Create new token**, enter a meaningful token name (for example, `haproxy-prod`), then click **Create token**. |
   | Use an existing token | Click **Use an existing token** and enter a token you have created in the past.                                       |
   
   **Tip:** You don’t need to copy the token. The token is added to the Alloy install script that you copy in the next step.
3. Verify that the **Enable Remote Configuration** toggle is set to on.
4. In the **Install and run Grafana Alloy** section, click **Copy to Clipboard**.
5. Log in to your HAProxy server and open a terminal. Paste the contents of the clipboard into the terminal and press **Enter**.
   
   When the installation is complete, you’ll see `Alloy is now running!`
6. To verify that Grafana Alloy is installed correctly, click **Test Alloy connection**.
   
   If Alloy is installed correctly, you’ll see `Awesome! Grafana Alloy is good to go`.

* * *

### More to explore (optional)

- [What is Grafana Alloy?](/oss/alloy-opentelemetry-collector)
- [Grafana Alloy on GitHub](https://github.com/grafana/alloy)
