DevOps Classroomnotes 21/Sep/2023

Setting up heart beat for Servers and Applications (contd)

  • Consider the below image
  • we need to configure the connection between heart beat and elastic cloud
  • Refer Here for official docs of elastic stack to setup heart beat
  • Change the heartbeat.yml as discussed in the class and test the config and output as shown below
  • Now perform the setup and enable, start the heart beat
/usr/share/heartbeat/bin/heartbeat setup -e
sudo service heartbeat-elastic enable
sudo service heartbeat-elastic start
sudo service heartbeat-elastic status


* Now login into kibana endpoint
* Configure alerts (alerts to email is not working and will be fixed in next sesssion)
* The uptime monitor aggregates all the heart beat information into one dashboard

Setting up Metric beat to get server metrics into elastic cloud

  • Lets use the same servers for metric beat i.e. apache server and mysql server
  • Metric beat needs to be installed on the servers where the applications are executing
  • Refer Here for the official docs
  • Installing on ubuntu
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list
sudo apt-get update && sudo apt-get install metricbeat -y
  • We have executed the setup
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%