Install Metricbeat on the same server as Elasticsearch

4 min readAug 22, 2022

Metricbeat helps you monitor your servers and the services they host by collecting metrics from the operating system and services.

This guide describes how to get started quickly with metrics collection. You’ll learn how to:

  • install Metricbeat on each system you want to monitor
  • specify the metrics you want to collect
  • send the metrics to Elasticsearch
  • visualize the metrics data in Kibana

Now let’s go to Management -> Stack Monitoring and click “Or, set up with self monitoring

Turn on monitoring

Enter Setup mode

Click self monitoring on the Elasticsearch area.

Click monitor with metrickbeat then give the elasticsearch url then click next.

Now go to terminal are and install metricbeat.

Step 1: Install Metricbeat

Install Metricbeat as close as possible to the service you want to monitor. For example, if you have four servers with MySQL running, it’s recommended that you run Metricbeat on each server. This allows Metricbeat to access your service from localhost and does not cause any additional network traffic or prevent Metricbeat from collecting metrics when there are network problems. Metrics from multiple Metricbeat instances will be combined on the Elasticsearch server.


I am writing about Sql Server, Elasticsearch and Python. İ am an Database Administrator on SQL Server and Elasticsearch more than 5+ years.