Load balancers (HAProxy and nginx) in Topologix

Infrastructure & Networking

Network → Load balancers lists every HAProxy and nginx the host agent found on the servers you can see: their status, configuration, certificates and drift, the keepalived VIP groups, the members no known machine has, and — for a backend in front of a Kubernetes gateway — the whole chain to the pods. Filters keep long lists usable; this guide explains each part and what to do when the chain stops.

Requirements

  • The host agent on the load balancer’s server (Server Vitals): HAProxy needs agent 2.10.0 and proxy 1.316.0, nginx agent 2.11.0 and proxy 1.316.0; the configured certificates agent 2.12.0 and proxy 1.318.0. An older agent or proxy is named on the row with what to update.
  • An F5 BIG-IP needs no agent: its F5 BIG-IP integration (proxy 1.324.0) with one metric source per device puts each device on this page — virtual servers as frontends, pools as backends.
  • For the Kubernetes chain: the cluster as a Kubernetes integration with the Gateway API and MetalLB rules in its ClusterRole (RBAC), agent 2.13.0 (the Host ACL values a rule routes) and proxy 1.319.0 for a proxied cluster.

1 · Get a load balancer on the page

  1. Install the host agentServers → a server → Agent — the one-line install. The agent detects HAProxy and nginx and lists them under Services on this host.
  2. Monitor itSwitch the HAProxy / nginx service on there, or let Auto-monitor detected HAProxy / nginx (the switch on the page, value + source; Settings → Organisation → Network) create the source by itself.
  3. Open Network → Load balancersWithin one poll the load balancer appears with its status and configuration; the next infra sweep maps where each member resolves.

2 · The list and its filters

What a row shows

Host (and the HAProxy / nginx version), unit, status (servers UP, backends with no UP server, queueing — nginx: members ok from its error log), the configuration (frontends · backends · servers, or sites · upstreams · members, the keepalived VIPs, when it last changed), certificates (count + the soonest expiry), drift between the configuration and the runtime, unmatched members, and when it was last read. A row opens the load balancer in depth.

Filters

The bar above the list narrows it without reloading anything; the count says N of M load balancers, and Clear resets it. Your browser remembers the filters (per viewer; a private window starts empty).

  • Search — host, unit, label, VIP, and inside the configuration: frontend / site names and server_names, backend / upstream names, server / member names and addresses (the runtime’s too), and the host names of those addresses (below). Every word must match.
  • Type — HAProxy, nginx or both.
  • Problems — no reading, a server DOWN (nginx: a member failing), a backend with no UP server, configuration-vs-runtime drift (including nginx “not reloaded”), unmatched members, a certificate expiring.
  • Has unmatched — members no known machine, pod, service or device has.
  • Certificate expiring — the soonest certificate at or under the warn days (30 by default; critical 7).
  • HA group — the members of one keepalived VIP group.
  • The same filter narrows the HA groups, the MetalLB rows (the search) and the Unmatched backend servers (only those of the load balancers shown).

Addresses show as name (ip)

Wherever the page shows an address — a member’s Address, the VIPs of a row, the HA groups, the unmatched servers, the MetalLB VIPs — it reads app-02.corp.local (10.0.1.12:8080) when the address has a name. Hover it for where the name comes from (from a virtual machine in the inventory, reverse DNS (PTR) via proxy dc1-proxy, 3 h ago); a name from reverse DNS alone is shown muted. The search boxes (the list, the backend filter, MetalLB) match the names too.

OrderWhere the name comes from
1The inventory of the load balancer’s own owner: a VM, a hypervisor host, a monitored server (host agent / Server Vitals), a Kubernetes node or pod, a network device, then a Zabbix host, a catalogue device or an AD domain controller. It always wins over reverse DNS.
2Reverse DNS (PTR) through one of the owner’s proxies — any online proxy, a NetFlow-listening one preferred; it needs no flow listener — i.e. with the customer’s own DNS — the same background lookups and cache as network flows (24 h; 6 h when there is no name). An internal address with no such proxy is asked from the server.
3Nothing yet: the address is queued and named in the background (within a minute or so) — the page is never held up by a lookup. A member configured by an FQDN keeps its own name.
  • Public addresses are named only because these pages show them (the flow addresses stay internal-only). Admin → Background workers → Load balancers / Servers: name public addresses by reverse DNS (ptrPublicOnPages, value + source): 0 — not looked up; 1 (default) — through one of the owner’s proxies, version 1.323.0 or later; 2 — as 1, and the server’s own resolver when no such proxy is online.
  • Privacy: setting 2 sends the load balancer member addresses to the resolver of the cloud the Topologix server runs in — leave it at 1 unless that is acceptable.
  • With setting 1 and no proxy 1.323.0 or later online, a public address shows alone and its tooltip says no host name: not asked — needs a proxy ≥ 1.323.0 online; it is asked again every 10 minutes, so once the proxy is updated it is named within minutes. Admin → Background workers → Network flows counts these as not asked, not as “without a name”.
  • Names are looked up per owner: two customers’ 10.0.0.5 are never confused, and an address you may not see is never named. Infrastructure → Servers uses the same names in its IP column’s tooltip and the Details pop-up’s Addresses.
  • Each page notes at most 1 000 addresses at a time and has its own quota (2 000 per owner), so it never pushes the flow names out.

HA groups and unmatched servers

HA groups (keepalived) lists each VIP with its members and the one that holds it now (or “no member holds it now”). Unmatched backend servers lists members whose address no known machine has — Add host agent installs the agent there, Alias to… says what the address is.

3 · One load balancer

Frontends and backends (HAProxy), sites and upstreams (nginx)

Frontends with their binds, TLS and routes (sessions, req/s, 4xx / 5xx); backends with their members — status, the check’s own words, last change, latency, queue, sessions, and where each resolves. nginx shows sites (server_names, listens, locations → upstream) and upstreams whose members carry a passive state from nginx’s own error log (failing / ok, errors per minute, the error classes). Then the certificates, configuration vs runtime, the log termination states, configuration changes and the settings (every alert default with its effective value and source).

The backend filter

Above the frontends: a search over backend / upstream names, member names, addresses and where they resolve, and a member status — DOWN, not UP, unmatched, NO_CHECK (nginx: failing, not ok, unmatched, no health read). The count reads N of M backends; matching backends open by themselves, and the frontends / sites are narrowed by the same search. Remembered per viewer.

Where a member resolves

“Resolves to”Meaning
this hostThe load balancer’s own server (loopback or one of its addresses) — and the service listening on that port.
instance …A catalogue instance (a database or service) on that address and port.
pod …A Kubernetes pod’s address.
Kubernetes service …A Service’s ClusterIP / external IP (a MetalLB VIP) or a NodePort — the chain below explains what is behind it.
vm / host / server / device …A machine with that address (vCenter, the host agent, SNMP …).
unmatchedNo known machine, pod, service or device has the address — listed under Unmatched backend servers.
ambiguous address — not guessedSeveral machines claim the address.
not mapped yetThe next infra sweep maps it.

4 · The Kubernetes chain behind a gateway VIP

When a backend’s (or an nginx upstream’s) members are a Kubernetes gateway’s VIP, the backend shows the chain behind it: VIP 10.252.30.107:80 · held by worker-07 since 14:02 (ServiceL2Status) → gateway envoy-gateway-system/default → route shop (shop.example.com /) → Service shop-api:8080 → 3/3 pods ready — or why the routes were not matched.

Why the chain stops

A member that resolves to a Kubernetes service with no chain behind it says why, per cluster whose MetalLB VIP (or Service) holds its address — on the member and in one line above the members table: Gateway API not readable on <cluster> — missing permission (403): add gateways / httproutes / grpcroutes get / list / watch (apiGroup gateway.networking.k8s.io) to the ClusterRole. Each cluster has its own ClusterRole, so the line names exactly the cluster that lacks the rule.

The line saysWhat to do
missing permission (403)Add the Gateway API rule on that cluster — Kubernetes → Troubleshooting.
the token was rejected (401)Fix the Kubernetes integration’s bearer token.
proxy … runs an older versionUpdate the proxy that polls the cluster (1.319.0 or later).
not read yetThe next infra sweep reads it.
no Gateway API in … (grey)Nothing to fix: the Service is not behind a Gateway API gateway there.
  • The bot sees the same line: asked about this load balancer, it names the cluster and the fix instead of stopping at the Service.
  • A cluster another owner keeps is never named.

Reading the chain

  • The VIP: which node announces it and since when (ServiceL2Status, or the speaker’s nodeAssigned event), how often it moved in 7 days (the history opens), the node’s other VIPs; a BGP VIP reads “advertised by N nodes, sessions up M / T”.
  • The gateway and its cluster; the routes the backend’s hosts reach (HTTPRoute or GRPCRoute, hostnames, paths, header / query match names) with “not Accepted” / “unresolved backendRefs” flags; the Services with their pods ready / total (live when the Forensic overlay holds the cluster).
  • “Routed from” names the hosts a frontend rule routes (HAProxy’s Host ACL values, agent 2.13.0; nginx: the sites’ server_names).

5 · MetalLB

One table for every cluster

One row per VIP: cluster, VIP, Service, pool (used / total, orange at 90 % — the usage alert’s default), held by (node + since + source) and moves in 24 h / 7 days, flapping at 3 or more moves in 7 days (the flap alert’s default). Click a row for the pool (addresses, auto-assign, how it is advertised, .0 / .255 avoided) and the movement history. Pools with no VIP sit in one “Pools without a VIP” line; a cluster’s reads that are not ok (missing permission, token rejected, pools not read through an older proxy, capped) and its BGP sessions sit in one line per cluster above the table.

  • Filters: cluster, pool, holder node, state (not announced / flapping / pool ≥ 90 %) and a search over VIP, Service, pool, node and cluster — N of M VIPs; the list’s search narrows the rows too. Remembered per viewer.
  • The rules it needs and the alerts behind it: Kubernetes → MetalLB and the Gateway API.

6 · All load balancers on a flow

One metric node for the whole fleet — like Graylog’s All services: every HAProxy and nginx of the organisation on one canvas tile and one panel card, with its own history.

Add the node

Open a metric node’s sources → Add → Or add All load balancers (no integration to pick). The first one makes an internal All load balancers integration for the flow’s owner; the source is computed by the server from what the load balancers already stored — no connection, never a proxy — and updates every 60 s or slower.

  • Kinds — HAProxy, nginx or both.
  • Tag filter — empty = every load balancer the flow’s owner can see in the organisation. The top bar filter’s grammar: env:prod, env: (not set), tenant:pl, tag:team:payments — env / tenant values OR within a key, every tag: required — matched on the load balancer, its host’s Server Vitals integration and its own integration. One node per tenant or environment is a node per filter. While the organisation’s access model is paused the rows are kept and the card says the filter was not applied.
  • Rows shown — 200 by default (1–500): problems first, then the busiest; the counts always cover every load balancer.

The tile and the card

The tile reads N load balancers · M with problems (or All healthy) with the fleet’s req/s and 5xx/s and a dot in the worst state. The card lists each load balancer — status, name and kind, req/s, 5xx/s, servers up / total, backends down, the soonest certificate, a 24 h req/s sparkline, when it was last read — with a search box and the chips Problems, HAProxy, nginx. Click a row for that load balancer’s own history (its per-backend graphs); the arrow opens it on Network → Load balancers.

StatusMeaning
Error / WarningThe load balancer’s own signals (a backend with no UP server, a server down, queueing, the 5xx share, response errors, P* terminations, nginx “no live upstreams”, a certificate expiring) under its own alert settings, configuration drift, or the certificate column’s tone.
Not read (a problem)No reading for 3 of its polls, or the last read failed.
Not read / Off (not a problem)Never read yet (an older agent or proxy — the Load balancers page says what to update) or its monitoring is switched off.

No duplicate alerts

The node only shows the worst state — its colour never sends a notification and never opens an Alerts-page card; each load balancer keeps alerting on its own. A rule you add on the fleet source under Alert rules (for example Load balancers with problems > 3) alerts like any source’s.

  • The node shows the state right now — before each load balancer’s own alert windows, up to one poll behind — so it can turn red a little before (or without) the load balancer’s own alert.
  • The card shows the flow owner’s view: everyone who can open the flow sees the same rows. A row’s history opens for those who can read that load balancer’s own source.

Good to know

  • Everything on the page is read from what the sources already stored — opening it sends nothing to HAProxy, nginx or the cluster.
  • The certificates view (the Certificates toggle beside the list) groups every configured certificate by fingerprint with all its locations — the renewal worklist.
  • The HAProxy integration (the Prometheus exporter, HAProxy) is separate: it puts one HAProxy’s metrics on a flow node. The host agent’s view here needs no exporter.

All integrations →

See it on your own infrastructure

Book a demo and we will walk you through Topologix with your systems in mind: on our cloud, or self-hosted in your own network.