English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Monitoramento do Elasticsearch

To monitor the health of the cluster, the monitoring feature collects metrics from each node and stores them in the Elasticsearch index. All settings related to monitoring in Elasticsearch must be in the elasticsearch.yml file for each node, or, if possible, in the dynamic cluster settings.

To start monitoring, we need to check the cluster settings, which can be done in the following ways:

GET _cluster/settings
{
   "persistent" : { },
   "transient" : { }
}

Each component in the stack is responsible for monitoring itself and then forwarding these documents to the Elasticsearch production cluster for routing and indexing (storage). The routing and indexing process in Elasticsearch is handled by so-called collectors and exporters.

Collector

The collector runs once per collection interval to retrieve data from the public API of the Elasticsearch it monitors. After data collection is complete, the data is batched and sent to the monitoring cluster.

Each data type collects only one collector. Each collector can create zero or more monitored documents.

Exportador

O exportador roteará dados coletados de qualquer fonte do Elastic Stack para o cluster de monitoramento. Pode ser configurado vários exportadores, mas as configurações comuns e padrão usam um exportador. O exportador pode ser configurado em nível de nó e nível de cluster.

Existem dois tipos de exportadores no Elasticsearch-

  • local −Este exportador roteia dados de volta para o mesmo cluster

  • http −Exportador preferido, usado para rotear dados para qualquer cluster de Elasticsearch suportado que possa ser acessado via HTTP.

Antes que o programa de exportação possa rotear dados de monitoramento, eles devem configurar certos recursos do Elasticsearch. Esses recursos incluem modelos e tubos de ingestão