Step To Collect System Metrics In ELK Stack On CentOS 7

Step To Collect System Metrics using this plugin to monitor your infrastructure. Metricbeat will help you to gather the information about your server values like CPU, N/W I/O, and much more. We can collect the system metrics using metricbeat elk.

Check Out: Error Can’t Run Elasticsearch As a Root User In Linux

First of all, you need to download the metric package to install, and with the help of this module, you can collect all the metrics of servers which will be defined in the modules file.

This metricbeat will help you to check the loads and monitor all the servers in one place. you can also check the mounted disk using this module. 

Step To Collect System Metrics In ELK Stack:

There’re lots of modules available along with Apache and much more it depends on what’re your requirements.

Check Out: How To Install and Configure MongoDB On Ubuntu

you can customize this module which you don’t want to show in kibana and helps to identify the issues in the servers.

Below are the steps for the configuration of this module.

Step 1: Run the below command to install it.

yum install metricbeat-7.2.0-x86_64.rpm -y

Check Out: How To Install APM Server In Elasticsearch Elk Stack

Step 2: Take a backup of the original metric configuration file 

cd /etc/metricbeat/
cp metricbeat.yml metricbeat.yml-backup

Now make changes in the configuration file to connect with elasticsearch.

vim /etc/metricbeat/metricbeat.yml

Now Elasticsearch settings,

how to configure metricbeat to collect metrics

Check Out: Configuration of Filebeat For Elasticsearch

Step 3: Start and enable metricbeat service.

systemctl start metricbeat && systemctl enable metricbeat

Step 4: After starting the service, you need to enable the system module.

metricbeat modules enable system

Once you enable the module, now setup the metricbeat dashboard to send to kibana to visualize graphically.

metricbeat setup

Now go to kibana and check data coming by clicking on check data,

system metrics elk

Check Out: How To Access Kibana Using Domain Name On Linux

if you find this successful, click on the system metrics dashboard.

metrics collect using metricbeat

YouTube Link:

That’s it. metrics collect using metricbeat system

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment