Monitoring cluster health via an API
In previous recipes, we learned how to use a dedicated monitoring cluster to obtain telemetry and KPIs for deployments, how to set up alerting rules, and how to build custom visualizations and dashboards to gain insights into the performance of these deployments. In this recipe, we will explore how the newly introduced Health API (available since version 8.7) can assist us in health checking, diagnostics, and troubleshooting of Elastic deployments.
Getting ready
Make sure to have a running Elastic deployment.
The sample commands of this recipe can be found at this address: https://github.com/PacktPublishing/Elastic-Stack-8.x-Cookbook/blob/main/Chapter13/snippets.md#monitoring-cluster-health-via-api
How to do it…
In this recipe, we will demonstrate how to use various Health API commands in different situations. We will execute the command examples in the Kibana Dev Tools of our main cluster (please ensure you are not using the...