Enable Elasticsearch Cluster Monitoring

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

It can be a very complicated thing to measure the health of or troubleshoot distributed systems. There are a lot of moving pieces when it comes to data infrastructure. Thankfully, Elasticsearch simplifies this problem by baking in monitoring capabilities for the entire Elastic Stack. In this hands-on lab, we will demonstrate how to setup self-monitoring for an Elasticsearch cluster.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable the collection of monitoring data.

Use the Kibana console tool to execute the following:

PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.collection.enabled": true
  }
}
Explore the Monitoring data in Kibana.

From Kibana, navigate to the "Stack Monitoring" application and explore the monitoring data.

Additional Resources

You work as a data infrastructure engineer for a large IT shop where one of your DevOps teams want to utilize Elasticsearch for a new project. You have a 3-node Elasticsearch cluster with Kibana already created to use as a proof of concept for the project but you want to enable self-monitoring on the cluster so that you can observe the cluster performance in order to make informed design decisions for a later production deployment.

For this, you will need to enable the collection of monitoring data on the 3-node cluster. Since this is not a production cluster, it will be self-monitored so there will be no need to setup remote monitoring at this time.

Your master-1 node has a Kibana instance which can be accessed in your local web browser by navigating to the public IP address of the master-1 node over port 8080 (example: http://public_ip:8080). To log in, use the elastic user with the password elastic_566.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?