]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: promex: Dump metrics of registered modules with a way to filter them
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Jan 2024 14:58:31 +0000 (15:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Feb 2024 08:11:34 +0000 (09:11 +0100)
commit5f875414eb312daefb2c177c273cf383698e622c
tree0738d17861691947e076ea2b0668807c58e3a4bf
parenteb2128723aabdc94f0a59a087229e5c674336b2e
MEDIUM: promex: Dump metrics of registered modules with a way to filter them

This patch adds a dump loop on the registered modules. It is very similar to
other dump loops. When a module registered, a implicit scope is created with
the module's name. It means a module name must be unique. It also means,
metrics dump of modules can be filtered via the "scope" parameter.
addons/promex/include/promex/promex.h
addons/promex/service-prometheus.c