DevOps Classroomnotes 20/Sep/2023

Setting up heart beat for Servers and Applications

  • Lab Setup
  • Apache Server setup
sudo apt update
sudo apt install apache2 -y
sudo apt update
sudo apt install mysql-server -y
sudo systemctl status mysql.service
  • Lets install heart beat: Refer Here for the steps
wget -qO - | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list
sudo apt-get update && sudo apt-get install heartbeat-elastic -y
  • Elastic heartbeat folders/directories
    • Configuration files: /etc/heartbeat/
    • Installation folder: /usr/share/heartbeat/
  • The heartbeat.yml in the config folder of heart beat is the actual configuration used and heartbeat.reference.yml is sample to make us understand how to use heartbeat.yml, Refer Here for the default files which are installed in /etc/heartbeat
  • Monitoring types supported in heart beat Refer Here
  • Common options: Refer Here
  • Refer Here for yaml reference
  • Refer Here for the changes added to fetch http,icmp and tecp requests
  • Next Steps: We need to configure heartbeat to connect to elastic cloud and start monitoring

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner