Elastic Certified Observability Engineer Exam: Configure and run Heartbeat to determine the uptime of a process or service
Download the package using one of the methods:
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-8.8.2-darwin-x86_64.tar.gz
tar xzvf heartbeat-8.8.2-darwin-x86_64.tar.gz
or from here
now open heartbeat.yml and modify the output to elasticsearch like this:
output.elasticsearch:
hosts: ["https://your_address:9200"]
username: "elastic"
password: "YOUR_PASSWORD"
ssl:
enabled: true
ca_trusted_fingerprint: "copy your fingerprint"
at the same file add the HTTP monitor configuration
heartbeat.monitors:
- type: http
# Set enabled to true (or delete the following line) to enable this example monitor
enabled: true
# ID used to uniquely identify this monitor in elasticsearch even if the config changes
id: my-monitor
# Human readable display name for this service in Uptime UI and elsewhere
name: My Monitor
# List or urls to query
urls: ["http://localhost:5601"]
# Configure task schedule
schedule: '@every 10s'
you can change the URL to your kibana or any other website, like elastic.co
save the configurations, and run this command to upload the built in Ingest pipelines, index parameter, dashboard.
./heartbeat setup -e
after that you can start heartbeat, in this case you can start it as service, or from the binary.
./heartbeat -e
once you finish you go to kibana > Stack Management > Data Views > Create data view > you use heartbeat-* as data view
if you are here then congrats! let me know in the comment if you faced any issues, stay tuned for the upcoming blogs.
next one will be Uptime application in Kibana.