5.14. haproxy

Monitor management metrics of a haproxy instance.

loader

lua

object

noit.module.haproxy

5.14.1. Module Configuration

5.14.2. Check Configuration

uri
required

required

default

/admin?stats;csv

allowed

^/.+

The URL excluding schema and hostname for the haproxy stats CSV export. eg /admin?stats;csv

host
required

optional

allowed

.+

Host name to include in HTTP request, defaults to target IP

port
required

optional

default

80

allowed

^[0-9]+$

Port to connect to

select
required

optional

default

.*

allowed

.+

Specifies a regular expression to pick which metrics to report. Will be matched against the pxname and svname columns concatenated by a ","

auth_user
required

optional

allowed

[^:]*

The user to authenticate as.

auth_password
required

optional

allowed

.*

The password to use during authentication.

Example 5.15. 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>