• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

Monitor self-hosted HAProxy with OpenTelemetry

Monitor your self-hosted HAProxy load balancers with OpenTelemetry to send performance metrics and telemetry data to New Relic.

You can choose between three collector options:

Dica

If you're currently using nri-haproxy and want to switch to OpenTelemetry, disable the legacy integration and follow the setup steps below. The OTel-based approach provides dimensional metrics with richer metadata (haproxy.proxy_name, haproxy.service_name per frontend/backend/server).

Before you begin

Ensure you have:

Set up HAProxy monitoring

Choose your preferred collector and follow the steps:

The NRDOT collector is a pre-configured distribution that includes the haproxyreceiver and New Relic-specific components.

To install and configure the NRDOT collector, follow these steps:

Dica

If any verification step fails, install the missing components before continuing. Need help installing the NRDOT collector? Check the installation section of the nrdot-collector-releases repository.

During installation use export collector_distro="nrdot-collector"

You can use the OpenTelemetry Collector Contrib distribution with the haproxyreceiver to monitor your HAProxy server. The haproxyreceiver scrapes HAProxy's CSV stats endpoint and produces dimensional metrics with per-frontend, per-backend, and per-server granularity.

Use this approach if you already have HAProxy's built-in Prometheus endpoint enabled in your environment, or if you're migrating from a Prometheus-based monitoring stack.

Dica

Recommended: If you don't already have the HAProxy Prometheus endpoint enabled, use the NRDOT collector or OpenTelemetry Collector Contrib tabs instead. They connect directly to the HAProxy stats endpoint without needing the Prometheus exporter module.

View your data in New Relic

Once data is flowing, find your HAProxy metrics in New Relic:

  1. Go to one.newrelic.com > All capabilities > All entities.
  2. Search for your HAProxy entities by name or filter by entity type HAPROXYINSTANCE.
  3. Select an entity to view the summary page with golden metrics (sessions per second, requests per second, connection errors).

For more ways to explore your data, see Find and query your HAProxy data.

Troubleshooting

If you encounter issues during setup, use this troubleshooting guide to diagnose and resolve common problems.

Next steps

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.