部署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查看堆栈监测,查看监测的节点和节点的索引


相关推荐
@泽栖1 小时前
ES数据聚合
elasticsearch·搜索引擎
張萠飛5 小时前
Linux下如何使用shell脚本导出elasticsearch中某一个index的数据为本地csv文件
linux·运维·elasticsearch
LanLance7 小时前
ES101系列09 | 运维、监控与性能优化
java·运维·后端·elasticsearch·云原生·性能优化·golang
疯狂的沙粒10 小时前
如何通过git命令查看项目连接的仓库地址?
大数据·git·elasticsearch
IT成长日记14 小时前
Elasticsearch集群手动分片分配指南:原理与实践
大数据·elasticsearch·手动分片分配
Elastic 中国社区官方博客1 天前
Elastic 获得 AWS 教育 ISV 合作伙伴资质,进一步增强教育解决方案产品组合
大数据·人工智能·elasticsearch·搜索引擎·云计算·全文检索·aws
Tom Boom1 天前
Git常用命令完全指南:从入门到精通
大数据·git·elasticsearch·docker·自动化测试框架
星星点点洲1 天前
【Elasticsearch】 查询优化方式
elasticsearch·搜索引擎
@BreCaspian1 天前
Git 推送失败解决教程——error: failed to push some refs to
大数据·git·elasticsearch
Elasticsearch1 天前
节省 90% 存储!源码级揭秘腾讯云 ES 向量搜索的优化之道
elasticsearch