5.28. elasticsearch

The elasticsearch module pulls JSON stats from Elasticsearch

loader

lua

object

noit.module.resmon

5.28.1. Module Configuration

5.28.2. Check Configuration

url
required

required

default

http:///_cluster/nodes/_local/stats?os=true&process=true&fs=true

allowed

.+

The URL including schema and hostname (as you would type into a browser's location bar).

port
required

optional

default

9200

allowed

\d+

The TCP port can be specified to overide the default of 9200.

Example 5.29. Checking elasticsearch services on a node es1.int.foo_

This example checks the Elasticsearch service on the es1.int.foo_ node.

      <noit>
        <modules>
          <loader image="lua" name="lua">
            <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
          </loader>
          <module loader="lua" name="elasticsearch" object="noit.module.resmon"/>
        </modules>
        <checks>
          <es target="es1.int.foo_" module="elasticsearch">
            <check uuid="2503f08c-7a0f-11e3-9ba0-7cd1c3dcddf7"/>
          </es>
        </checks>
      </noit>