IntégrationsBases de données et messagerie
Surveiller Elasticsearch / OpenSearch avec DumbMonit
The search cluster: red or yellow status, unassigned shards, disk filling up on a node and JVM heap pressure.
DocumentationSite officiel : Elasticsearch
Les descriptions des produits sont en anglais, comme dans le produit. Les libellés de la page suivent votre langue.
Ce que DumbMonit surveille
Elasticsearch and OpenSearch: cluster status (red or yellow), unassigned shards, disks filling up node by node, and JVM heap pressure.
Usage typique. Cluster status, unassigned shards, node disk and heap
Exemples
- Elasticsearch 7, 8, 9
- OpenSearch 1, 2, 3
- The index behind Graylog or Wazuh
Comment il se connecte
Ce qu'il faut
- 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.
Aucun compte nécessaire.
Ports réseau à ouvrir
9200/TCPREST API (HTTP or HTTPS, default)
Étapes de mise en place: Create a monitoring-only Elasticsearch user
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"]}'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"]}'OpenSearch: create a role with the cluster permission cluster_monitor in Security, Roles, and map the user to it.
In DumbMonit, enter the address of one node, for example es.lan, then the user and its password.
Elasticsearch 8 and later serve HTTPS with a generated certificate: pick HTTPS, and tick Accept an unverifiable certificate unless you installed your own.
À savoir. 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.