Elasticsearch Monitoring
集群
查看集群状态 curl -s '127.0.0.1:9200/_cluster/health?pretty' 查看集群中所有索引的状态 curl -s '127.0.0.1:9200/_cluster/health?pretty&level=indices' 查看集群中所有索引分片的状态 curl -s '127.0.0.1:9200/_cluster/health?pretty&level=shards'节点
查看集群中所有节点的配置信息 curl -s '127.0.0.1:9200/_nodes/?pretty' 查看集群中指定节点的配置信息 curl -s '127.0.0.1:9200/_nodes/{ip|name}?pretty' 查看集群中所有节点的状态信息 curl -s '127.0.0.1:9200/_nodes/stats/?pretty' 查看集群中指定节点的状态信息 curl -s '127.0.0.1:9200/_nodes/{ip|name}/stats/?pretty' 查看集群中所有节点的指定状态信息 curl -s '127.0.0.1:9200/_nodes/stats/{indices|os|process|jvm|thread_pool|fs}?pretty' 查看集群中指定节点的指定状态信息 curl -s '127.0.0.1:9200/_nodes/{ip|name}/stats/{indices|os|process|jvm|thread_pool|fs}?pretty'cat
curl -s '127.0.0.1:9200/_cat/?'索引
查看指定索引的状态信息 curl -s 127.0.0.1:9200/_cat/indices/{index}?v 查看指定索引的分片信息 curl -s 127.0.0.1:9200/_cat/shards/{index}?v 查看指定索引的段信息 curl -s 127.0.0.1:9200/_cat/segments/{index}?v原文作者:erica.zhou 原文地址:http://www.z-dig.com/elasticsearch-monitoring.html