部署Heartbeat--Elastic Stack之十一
Heartbeat 能够通过 ICMP、TCP 和 HTTP 进行 ping 检测,同时也支持 TLS、认证和代理。可以借助简易的 DNS 解析,监控负载均衡服务器背后的所有主机。
下载地址:https://www.elastic.co/cn/downloads/beats/heartbeat #安装Heartbeat #yum install -y heartbeat-7.2.0-x86_64.rpm #修改配置文件 #cat heartbeat.yml heartbeat.monitors: - type: http urls: ["http://www.eyebus.cn"] schedule: '@every 10s' check.response.status: 200 - type: tcp schedule: '@every 5s' hosts: ["192.168.1.223:9200"] - type: icmp schedule: '*/5 * * * * * *' hosts: ["192.168.1.225"] setup.template.settings: index.number_of_shards: 1 index.codec: best_compression setup.kibana: host: "192.168.1.224:5601" output.elasticsearch: hosts: ["192.168.1.224:9200"] processors: - add_host_metadata: ~ - add_cloud_metadata: ~ #启动及查看状态 #systemctl start heartbeat-elastic #ystemctl status heartbeat-elastic
#在elasticsearch-head查看索引和kibana 中查看uptime