• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Monitor HAProxy on Kubernetes with OpenTelemetry

This Kubernetes integration automatically discovers HAProxy pods in your cluster and collects metrics without manual configuration for each instance. It uses the OpenTelemetry haproxyreceiver and receivercreator to dynamically monitor HAProxy sessions, requests, errors, and backend server health across your containerized environment.

Tip

Running HAProxy on Linux hosts? See the self-hosted installation guide for virtual machine or bare metal deployments.

Before you begin

Ensure you have:

Set up HAProxy monitoring

Deploy the OpenTelemetry Collector Contrib to your Kubernetes cluster. The collector automatically discovers and scrapes metrics from your HAProxy pods. Choose between Helm (using the upstream OTel Helm chart) or raw Kubernetes manifests.

Use this approach if your HAProxy pods already expose a Prometheus /metrics endpoint (HAProxy 2.0+) and you prefer to scrape Prometheus metrics rather than connect to the CSV stats endpoint.

Tip

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

Important

This approach requires HAProxy 2.0+ with the built-in Prometheus endpoint enabled. Your HAProxy configuration must include:

frontend stats
bind *:8404
http-request use-service prometheus-exporter if { path /metrics }

And your HAProxy pods must expose a named port for the metrics endpoint:

ports:
- name: metrics
containerPort: 8404

View your data in New Relic

After a few minutes, HAProxy metrics appear in New Relic. To find your data:

  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).

Troubleshooting

Next steps

Copyright © 2026 New Relic Inc.

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