Collect logs and metrics from your HAProxy using Vector.
Select your platform:
Install and configure Vector on Ubuntu or Debian:
Curious about what the script does?
The script will ask for confirmation before making any changes.
You should see your logs in Better Stack → Live tail.
Check out your metrics in the HAProxy dashboard.
To collect HAProxy metrics, enable the stats frontend by adding the following to /etc/haproxy/haproxy.cfg:
Then restart HAProxy to apply the changes:
The stats frontend is bound to 127.0.0.1 so it is only accessible locally. Vector scrapes metrics from this endpoint automatically.
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Find step-by-step instructions in our dedicated Vector guide.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.