关于 Elasticsearch-exporter

Elasticsearch-exporter 是独立于elasticsearch的一个三方工具

不需要对原elasticsearch集群做任何修改即可,只需要可以访问elasticsearch即可部署

通常用来对外提供elasticsearch的集群运行信息

docker-compose 部署配置

elasticsearch_exporter: container_name: 'es_exporter' image: prometheuscommunity/elasticsearch-exporter:latest command: - '--es.uri=http://username:password@elasticsearch_address:9200' # 如果未使用身份验证可省略'@'符合前面的部分 - '--es.all' restart: always ports: - "9114:9114"

配置说明

## 参数说明: --es.uri     默认http://localhost:9200,连接到的Elasticsearch节点的地址(主机和端口)。 这可以是本地节点(例如localhost:9200),也可以是远程Elasticsearch服务器的地址 --es.all 默认flase,如果为true,则查询群集中所有节点的统计信息,而不仅仅是查询我们连接到的节点。 --es.cluster_settings 默认flase,如果为true,请在统计信息中查询集群设置 --es.indices 默认flase,如果为true,则查询统计信息以获取集群中的所有索引。 --es.indices_settings 默认flase,如果为true,则查询集群中所有索引的设置统计信息。 --es.shards 默认flase,如果为true,则查询集群中所有索引的统计信息,包括分片级统计信息(意味着es.indices = true)。 --es.snapshots 默认flase,如果为true,则查询集群快照的统计信息。
Last modification:September 28, 2022
如果觉得我的文章对你有用,请随意赞赏