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-xpack
has the optionxpack.enabled: true
, which is not present in theelasticsearch
module, and in theelasticsearch-xpack
modulo you also do not specify any metricsets.If you are using the monitoring UI in Kibana, then you should use the
elasticsearch-xpack
module, 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
elasticsearch
module and specify the metricsets that you want to collect.The
elasticsearch-xpack
is just theelasticsearch
module without anymetricsets
configured and with the optionxpack.enabled: true
.