Elk-metricbeat

下载包

curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.0.1-linux-x86_64.tar.gz

将包解压至指定目录

tar -zxf metricbeat-7.0.1-linux-x86_64.tar.gz -C /usr/local/

进包目录

cd /usr/local/metricbeat-7.0.1-linux-x86_64

修改配置文件1

vim metricbeat.yml
67:#host: "localhost:5601"-----> host: "192.168.1.185:5601"
94: hosts: ["localhost:9200"]-----> hosts: ["192.168.1.185:9200"]

修改配置文件2

vim metricbeat.reference.yml
387: hosts: ["localhost:5601"]---》 hosts: ["192.168.1.185:5601"]
471:hosts: ["192.168.1.185:9600"]

修改配置文件3

vim modules.d/kibana.yml
8:hosts: ["localhost:5601"]---> 8 hosts: ["192.168.1.185:5601"]

导入kibana模块

./metricbeat modules enable kibana

配置模块生效

./metricbeat -e &

你可能感兴趣的:(Elk-metricbeat)