MINOR: stats: hide px/sv/li fields in applet struct
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2020 16:32:02 +0000 (18:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 08:48:58 +0000 (10:48 +0200)
commitda5b6d1cd984ca4a6e02f66756e3159f539d86f7
tree94cbee796e8c278276497f928d1628e231e314cb
parent97323c9ed40b88df2e96c6d208a758a04214c146
MINOR: stats: hide px/sv/li fields in applet struct

Use an opaque pointer to store proxy instance. Regroup server/listener
as a single opaque pointer. This has the benefit to render the structure
more evolutive to support statistics on other types of objects in the
future.

This patch is needed to extend stat support for components other than
proxies objects.

The prometheus module has been adapted for these changes.
contrib/prometheus-exporter/service-prometheus.c
include/haproxy/applet-t.h
src/stats.c