---
title: "Configure the HAProxy integration | Grafana Labs"
description: "Set up the Grafana Cloud HAProxy integration to collect frontend and backend metrics"
---

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

# Configure the HAProxy integration

Now that HAProxy is exposing metrics, configure the Grafana Cloud integration to collect them. The integration tells Alloy where to scrape HAProxy metrics and which metrics to forward.

Return to the HAProxy integration page in Grafana Cloud to complete the configuration.

1. If you navigated away, return to the HAProxy integration page:
   
   a. Click **Connections &gt; Add new connection** in the left-side menu
   
   b. Search for `HAProxy` and click the tile
   
   c. Click **Proceed to install integration** if you completed the Alloy installation step
2. In the **Configure your HAProxy integration** section, enter the address of your HAProxy Prometheus endpoint.
   
   If you used the configuration from the previous step, enter:
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   http://localhost:8405/metrics
   ```
   
   If your HAProxy server and Alloy are on different machines, replace `localhost` with the HAProxy server’s IP address or hostname.
3. Review the configuration and click **Test integration** to verify that Alloy can reach the HAProxy metrics endpoint.
   
   If the test succeeds, click **Save and apply**.

The integration is now configured. Alloy begins collecting HAProxy frontend and backend metrics and forwarding them to your Grafana Cloud stack.
