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


相关推荐
洛森唛5 小时前
Elasticsearch DSL 查询语法大全:从入门到精通
后端·elasticsearch
Elasticsearch2 天前
如何使用 Agent Builder 排查 Kubernetes Pod 重启和 OOMKilled 事件
elasticsearch
Elasticsearch3 天前
通用表达式语言 ( CEL ): CEL 输入如何改进 Elastic Agent 集成中的数据收集
elasticsearch
海兰5 天前
离线合同结构化提取与检索:LangExtract + 本地DeepSeek + Elasticsearch 9.x
大数据·elasticsearch·django
yumgpkpm5 天前
AI视频生成:Wan 2.2(阿里通义万相)在华为昇腾下的部署?
人工智能·hadoop·elasticsearch·zookeeper·flink·kafka·cloudera
Sheffield5 天前
如果把ZooKeeper按字面意思比作动物园管理员……
elasticsearch·zookeeper·kafka
嗝屁小孩纸6 天前
ES索引重建(零工具纯脚本执行)
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客6 天前
使用 Jina Embeddings v5 和 Elasticsearch 构建“与你的网站数据聊天”的 agent
大数据·人工智能·elasticsearch·搜索引擎·容器·全文检索·jina
Elastic 中国社区官方博客6 天前
Elastic 公共 roadmap 在此
大数据·elasticsearch·ai·云原生·serverless·全文检索·aws