Elk-heartbeat

配置Heartbeat,健康检查

下载安装包

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

解压并进入包目录

tar -zxf heartbeat-7.1.1-linux-x86_64.tar.gz -C /usr/local/
cd /usr/local/heartbeat-7.1.1-linux-x86_64

编辑配置文件1

vim heartbeat.yml
27: localhost:9200----> 192.168.1.185:9200
80:#host: "localhost:5601" --->host: "192.168.1.185:5601"
107: hosts: ["localhost:9200"] ----> hosts: ["192.168.1.185:9200"]

编辑配置文件2

vim heartbeat.reference.yml
38:hosts: ["localhost"]----》 hosts: ["192.168.1.185"]
503:hosts: ["localhost:9200"]---> hosts: ["192.168.1.185:9200"]
607:#hosts: ["localhost:5044"]--->#hosts: ["192.168.1.185:5044"]

导入模板

./heartbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["192.168.1.185:9200"]'

启动

./heartbeat -e &

效果:


Elk-heartbeat_第1张图片
http://IP:5601.png

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