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


相关推荐
月屯3 小时前
es大页读取
大数据·elasticsearch·搜索引擎
努力的小郑15 小时前
与产品经理的“模糊”对决:Elasticsearch实现MySQL LIKE '%xxx%' 的奇幻之旅
后端·elasticsearch·搜索引擎
秋已杰爱1 天前
技术准备十五:Elasticsearch
大数据·elasticsearch·搜索引擎
starandsea2 天前
gitlab解决传过大文件后删除导致pack过大问题
大数据·elasticsearch·gitlab
大海绵啤酒肚2 天前
EL(F)K日志分析系统
运维·elasticsearch·云计算
Elasticsearch2 天前
如何在 AWS EC2 上安装和配置 Elasticsearch
elasticsearch
Elasticsearch2 天前
Elastic AI agent builder 介绍(二)
elasticsearch
维尔切2 天前
ELK日志系统部署与使用(Elasticsearch、Logstash、Kibana)
elk·elasticsearch·jenkins·kibana·logstash
帅帅梓3 天前
ELK es+logstash
大数据·elk·elasticsearch