1.metricbeat中启动自动加载模块
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
reload.period: 10s
2.开启kibana中的dashboard功能
setup.dashboards.enabled: true
然后启动metricbeat
3.启动zookeeper模块
./metricbeat modules enable zookeeper
会看到目录modules.d下的zookeeper.yml.disabled变成zookeeper.yml
4.编辑zookeeper.yml,配置上监听的zookeeper地址
- module: zookeeper
metricsets:
- mntr
- server
period: 10s
hosts: ["172.17.107.187:2181","172.17.107.187:2182","172.17.107.187:2183"]
5.在kibana web界面创建索引metricbeat-7.3.0*模式
6.在kibana左侧导航仪表盘搜索zookeeper,出现如下信息,点开查看: