DumbMonit

IntegracionesBases de datos y mensajería

Monitorizar Elasticsearch / OpenSearch con DumbMonit

The search cluster: red or yellow status, unassigned shards, disk filling up on a node and JVM heap pressure.

DocumentaciónSitio web oficial: Elasticsearch

Las descripciones están en inglés, como en el producto. Las etiquetas de la página siguen su idioma.

Qué vigila DumbMonit

Elasticsearch and OpenSearch: cluster status (red or yellow), unassigned shards, disks filling up node by node, and JVM heap pressure.

Uso habitual. Cluster status, unassigned shards, node disk and heap

Ejemplos

  • Elasticsearch 7, 8, 9
  • OpenSearch 1, 2, 3
  • The index behind Graylog or Wazuh

Cómo se conecta

Qué necesita

  • Username / passwordA user holding only the cluster privilege monitor, sent as HTTP basic authentication.
  • Bearer tokenA service account token, sent as a bearer token. Elasticsearch API keys use another scheme and are not supported.

No hace falta ninguna cuenta.

Puertos de red que abrir

  • 9200/TCPREST API (HTTP or HTTPS, default)
Pasos de configuración: Create a monitoring-only Elasticsearch user
  1. Create a role that only holds the cluster privilege monitor, from Kibana (Stack Management, Roles) or with the API.

    curl -u elastic -X PUT "https://es.lan:9200/_security/role/dumbmonit" -H "Content-Type: application/json" -d '{"cluster":["monitor"]}'
  2. Create the user with that role.

    curl -u elastic -X PUT "https://es.lan:9200/_security/user/dumbmonit" -H "Content-Type: application/json" -d '{"password":"choose-a-long-password","roles":["dumbmonit"]}'
  3. OpenSearch: create a role with the cluster permission cluster_monitor in Security, Roles, and map the user to it.

  4. In DumbMonit, enter the address of one node, for example es.lan, then the user and its password.

  5. Elasticsearch 8 and later serve HTTPS with a generated certificate: pick HTTPS, and tick Accept an unverifiable certificate unless you installed your own.

Ojo. The account needs no index privilege: DumbMonit never reads a document. One node reports the whole cluster, so enter a node that is not the one you expect to fail.