this tutorial will contain:
- Installing Heartbeat
Heartbeat is one of elastic component that check services status periodically we will explain the steps and its featuers
In this tutorial you need to have linux Fedora please complite the the setup in the link ElasticSearch tutorial
we will use the ES and Kibana scripts to install the packages
-
Go to observability section and select uptime
-
select add monitors with heartbeat
-
Download heartbeat
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-8.2.0-x86_64.rpm sudo rpm -vi heartbeat-8.2.0-x86_64.rpm
-
open and enable username,password,https
sudo nano /etc/heartbeat/heartbeat.yml
-
Add the certificate authorities
```sh ssl.ca_trusted_fingerprint: "" ``` -
or by use cert fingerprint
ssl.certificate_authorities: ["/etc/elasticsearch/certs/http_ca.crt"]
-
copy the output of default elastic cert by openssl and paste it in the yml file
openssl x509 -fingerprint -sha256 -noout -in /etc/elasticsearch/certs/http_ca.crt | awk --field-separator="=" '{print $2}' | sed 's/://g'
-
configure http monitor
-
Check setup and reachability
cd /usr/share/heartbeat/ sudo cp /etc/heartbeat/heartbeat.yml . sudo ./bin/heartbeat test config sudo ./bin/heartbeat setup
-
Run heartbeat script
sudo systemctl start heartbeat-elastic