部署Metricbeat监测ES

官方参考文档

安装Metricbeat
复制代码
curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.17.27-linux-x86_64.tar.gz

tar xzvf metricbeat-7.17.27-linux-x86_64.tar.gz

设置 Metricbeat连接到 Elasticsearch

进入metricbeat目录配置metricbeat.yml

复制代码
 cd metricbeat-7.17.27-linux-x86_64/
 vim metricbeat.yml

启用配置指标收集模块

Metricbeat 使用模块来收集指标

确定需要启用的模块,查看可用模块的列表
./metricbeat modules list

按需启用 elasticsearch-xpack模块
./metricbeat modules enable elasticsearch-xpack


进入modules.d目录下
cd modules.d

编辑elasticsearch-xpack模块配置文件
vim elasticsearch-xpack.yml


Metricbeat 附带预定义资产,用于解析、索引和可视化您的数据。要加载这些资产在安装目录执行

./metricbeat setup -e


启动Metricbeat

在Metricbeat 安装目录下

复制代码
sudo chown root metricbeat.yml 
sudo chown root modules.d/elasticsearch-xpack.yml 
nohup ./metricbeat & >/dev/null 2>&1   #后台启动 (./metricbeat -e 在前台启动)

登录kibana验证Metricbeat

登录kibana查看堆栈监测,查看监测的节点和节点的索引


相关推荐
Hello.Reader7 小时前
Go-Elasticsearch v9 安装与版本兼容性
elasticsearch·golang·jenkins
mykyle9 小时前
Elasticsearch-ik分析器
大数据·elasticsearch·jenkins
Penge66619 小时前
Elasticsearch深度分页解决方案
elasticsearch
Penge66619 小时前
Elasticsearch match_phrase 查询 slop 参数详解文档
elasticsearch
Penge66619 小时前
Elasticsearch 中的 copy_to:一文掌握字段合并搜索的利器
elasticsearch
mykyle2 天前
Elasticsearch-8.17.0 centos7安装
大数据·elasticsearch·jenkins
躲在云朵里`2 天前
Git的使用
大数据·git·elasticsearch
Elasticsearch2 天前
Elastic 劳动力的生成式 AI:ElasticGPT 的幕后解析
elasticsearch
kong@react2 天前
docker安装 Elasticsearch、Kibana、IK 分词器
elasticsearch·docker·jenkins
Elasticsearch2 天前
LlamaIndex 和 Elasticsearch Rerankers:无与伦比的简洁
elasticsearch