Host monitoring using Elastic Metricbeat in just 2 steps

blog-image
June 30, 2021

Request your license key here and follow the steps below once you have the key

ssh to the host that you want to monitor and clone repository using the command below (replace YOUR-LICENSE-KEY with your license key)

git clone https://YOUR-LICENSE-KEY@github.com/Humalect/monitoring-and-analytics-one-click

edit /etc/environment file and append the three lines as shown below (replace 1.1.1.1 with IP of your elastic instance and replace yourpassword with your elastic password)

ELASTICSEARCH_HOSTS=1.1.1.1
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD="yourpassword"

Note : Make sure elastic server has traffic open on port 5601,9200,80,443 from this newly created server

exit from the server and ssh again for variables to take effect (this step is to be improved)

start the docker container using commands below

cd ~/monitoring-and-analytics-one-click/metricbeat

docker-compose up -d

Login to your kibana instance and go to Analytics-> Dashboard -> [Metricbeat System] Overview ECS

This pre configured dashboard will show you the resource usage for your server.

Repeat the procedure on all the servers that you want to monitor.

If you don't have an ELK stack running, follow this article to stand it up in one click

summarized host view
Summarized view for all the hosts being monitored
detailed host view
Detailed view of each server being monitored



Back to all posts