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


相关推荐
leoZ23111 小时前
10-Git 仓库蒸馏术:从代码仓库到 OpenClaw 虚拟人-蒸馏工具链
大数据·git·深度学习·神经网络·目标检测·elasticsearch·lstm
艾伦_耶格宇11 小时前
【DOCKER容器实战】-3 ElasticSearch + Kibana
elasticsearch·docker·jenkins
Sayai1 天前
Elasticsearch 日志索引设计:按小时切分 + 小时内 Rollover 兜底(ILM 实战,附完整脚本)
大数据·elasticsearch·搜索引擎
Elasticsearch1 天前
生产环境向量搜索的一个设置:vectordb_document 模式如何自动调优 Elasticsearch
elasticsearch
【赫兹威客】浩哥1 天前
基于SpringBoot+Vue3的舆情文本分析系统|Elasticsearch检索+情感分析+话题热度追踪 毕设项目
spring boot·elasticsearch·课程设计
玉&心2 天前
在grafana中加入elasticsearch的日志dashboard
elasticsearch·grafana
Elasticsearch2 天前
让大模型思考,让小模型执行:在 Elastic Workflows 中拆分 LLM 成本
elasticsearch
Elastic 中国社区官方博客2 天前
ES95:面向 Elasticsearch 时间序列指标的自适应压缩
大数据·运维·elasticsearch·搜索引擎·架构·全文检索
编程令我快乐2 天前
模型配置及使用ccSwich管理
大数据·elasticsearch·搜索引擎
可遇_不可求2 天前
合集:LangChain智能体开发(四)langchain-elasticsearch
elasticsearch·langchain