Why are there two modules in metric beat for ES
- Elasticsearch
- Elasticsearch-pack
Both has same configurations in the modules.d directory.
Kibana page for Elasticsearch module suggests to use Elasticsearch module.
But documentation of Elasticsearch modules suggests the later one. Reference
Alternatively, run metricbeat modules disable elasticsearch and metricbeat modules enable elasticsearch-xpack.
It's so confusing. I think that if I need to use ES-wtih-Xpack, then the later module. But from 6.7.0 onwards, ES ships basic features of x-pack with open source one.
Thanks.
The configuration are almost the same, the
elasticsearch-xpackhas the optionxpack.enabled: true, which is not present in theelasticsearchmodule, and in theelasticsearch-xpackmodulo you also do not specify any metricsets.If you are using the monitoring UI in Kibana, then you should use the
elasticsearch-xpackmodule, which will collect the metrics that kibana needs.If you are not using the monitoring UI in Kibana, or are not even using Kibana and just want to collect the metrics, then you need to use the
elasticsearchmodule and specify the metricsets that you want to collect.The
elasticsearch-xpackis just theelasticsearchmodule without anymetricsetsconfigured and with the optionxpack.enabled: true.