服务器性能监控
Metricbeat下载:https://www.elastic.co/cn/downloads/beats/metricbeat
操作系统:Linux-Centos7
拷贝metricbeat-7.2.0-linux-x86_64.tar.gz到服务器
- 解压
[root@centos74-084 ~]# tar -zxvf metricbeat-7.2.0-linux-x86_64.tar.gz
- 配置Metricbeat
[root@centos74-084 ~]#cd metricbeat-7.2.0-linux-x86_64/
[root@centos74-084 ~]#ll
data
fields.yml
kibana
LICENSE.txt
metricbeat
metricbeat.reference.yml
metricbeat.yml
modules.d
NOTICE.txt
README.md
添加:setup.dashboards.enabled: true
指定kibana地址
配置Elasticsearch地址
保存退出
- 启动Metricbeat
[root@centos74-084 ~]#./metricbeat -e -c metricbeat.yml -d "publish"
- Kibana查看效果
高版本7.x安装中需要添加配置[setup.ilm.enabled: false],因为索引生命周期管理ilm功能默认开启,开启的情
况下索引名称只能为xxxx-*通配的形式, 通过setup.ilm.enabled: false进行关闭;如果要使用自定义的索引名
称,同时又需要启用ilm