Monitor management metrics of a haproxy instance.
lua
noit.module.haproxy
required
/admin?stats;csv
^/.+
The URL excluding schema and hostname for the haproxy stats CSV export. eg /admin?stats;csv
optional
.+
Host name to include in HTTP request, defaults to target IP
optional
80
^[0-9]+$
Port to connect to
optional
.*
.+
Specifies a regular expression to pick which metrics to report. Will be matched against the pxname and svname columns concatenated by a ","
optional
[^:]*
The user to authenticate as.
optional
.*
The password to use during authentication.
Example 5.7. Monitor two haproxy instances
The following example pulls all metrics available from haproxy running on 10.1.2.3 and 10.1.2.4
<noit>
<modules>
<loader image="lua" name="lua">
<config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
</loader>
<module loader="lua" name="haproxy" object="noit.module.haproxy"/>
</modules>
<checks>
<check uuid="2d42adbc-7c7a-11dd-a48f-4f59e0b654d3" module="haproxy" target="10.1.2.3" />
<check uuid="324c2234-7c7a-11dd-8585-cbb783f8267f" module="haproxy" target="10.1.2.4" />
</checks>
</noit>