elasticsearch宝典(1)-常用集群状态监控查询

软件环境

elasticsearch 6.2.4

推荐集群监控工具:

Cerebro Elasticsearch

elasticsearch-head

集群健康状态

_cat/health

http://127.0.0.1:9200/_cat/health?v

过滤属性h=status,shards

http://127.0.0.1:9200/_cat/health?v&h=status,shards

集群节点状态

1) 查询节点内存,负载,角色等

_cat/nodes

http://127.0.0.1:9200/_cat/nodes?v

过滤属性h=ip,cpu

http://127.0.0.1:9200/_cat/nodes?v&h=ip,cpu

elasticsearch宝典(1)-常用集群状态监控查询_第1张图片

2)  查询磁盘使用率,分片数量等

_cat/allocation

http://127.0.0.1:9200/_cat/allocation?v

elasticsearch宝典(1)-常用集群状态监控查询_第2张图片

单个节点详细信息

http://127.0.0.1:9200/_cat/节点ip/stats

http://127.0.0.1:9200/_cat/节点名字/stats

集群分片状态

_cat/shards

http://127.0.0.1:9200/_cat/shards?v

elasticsearch宝典(1)-常用集群状态监控查询_第3张图片

索引段信息

_cat/segments

http://127.0.0.1:9200/_cat/segments/索引名字?v

elasticsearch宝典(1)-常用集群状态监控查询_第4张图片

集群热点线程

_nodes/hot_threads

http://127.0.0.1:9200/_nodes/hot_threads

http://127.0.0.1:9200/_nodes/hot_threads&interval=20s

集群线程池

_cat/thread_pool

http://127.0.0.1:9200/_cat/thread_pool?v

elasticsearch宝典(1)-常用集群状态监控查询_第5张图片

集群索引信息

_cat/indices

http://127.0.0.1:9200/_cat/indices?v

elasticsearch宝典(1)-常用集群状态监控查询_第6张图片

集群主节点信息

_cat/master

http://127.0.0.1:9200/_cat/master?v

集群文档数

_cat/count

http://127.0.0.1:9200/_cat/count?v

索引文档数

_cat/count/索引名字

http://127.0.0.1:9200/_cat/count/索引名字?v

集群磁盘空间

_cat/allocation

http://127.0.0.1:9200/_cat/allocation?v

elasticsearch宝典(1)-常用集群状态监控查询_第7张图片

集群索引别名

_cat/aliases

http://127.0.0.1:9200/_cat/aliases?v

elasticsearch宝典(1)-常用集群状态监控查询_第8张图片

集群挂起任务

_cluster/pending_tasks

http://127.0.0.1:9200/_cluster/pending_tasks

 

你可能感兴趣的:(elasticsearch)