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.
If you navigated away, return to the HAProxy integration page:
a. Click Connections > Add new connection in the left-side menu
b. Search for
HAProxyand click the tilec. Click Proceed to install integration if you completed the Alloy installation step
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:
http://localhost:8405/metricsIf your HAProxy server and Alloy are on different machines, replace
localhostwith the HAProxy server’s IP address or hostname.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.