组件
Filebeat
-path.logs 指定日志路径,通过日志中 monitoring 分析采集概况。
可以 filebeat.yml 配置文件中调整日志级别为 debug,如:logging.level: info,把采集结果打印到日志中分析。
Logstash
Elasticsearch
_cat API
curl -XGET 'http://localhost:9200/_cat/indices/*?s=index:desc'
_cat/count
_cat/health
_cat/nodes
_cat/master
_cat/recovery
_cat/shards
_cat/plugins
_cluster API
curl -XGET http://localhost:9200/_cluster/health?level=indices&pretty
_nodes API
curl -XGET 'http://localhost:9200/_nodes/stats/indices?pretty'
# 热线程
curl -XGET http://localhost:9200/_nodes/hot_threads
慢日志
index_indexing_slowlog
index_search_slowlog
系统
I/O 信息
iostat -xd 1
pidstat -l -d -p $pid 1 5
内存
top
free
vmstat
sar -B
sar -W
pidstat -l -r -p $pid 1 5
CPU
top
vmstat
mpstat
网络连接和流量
sar -n DEV 1
netstat -anp
ifconfig