Loading

Stack monitoring

ECH ECK ECE Self-Managed

Stack monitoring allows you to collect logs and metrics from various Elastic products, including Elasticsearch nodes, Logstash nodes, Kibana instances, APM Server, and Beats in your cluster. You can also collect logs.

All of the monitoring metrics are stored in Elasticsearch, which enables you to easily visualize the data in Kibana.

Simplify monitoring with AutoOps

Use AutoOps in your Elastic Cloud Hosted, ECE, ECK, or self-managed deployments.

AutoOps is a monitoring tool that simplifies cluster management through performance recommendations, resource utilization visibility, and real-time issue detection with resolution paths. In the regions where it has been rolled out, AutoOps is automatically available in Elastic Cloud Hosted deployments and can be set up for ECE, ECK, and self-managed clusters.

To help you make your decision, refer to AutoOps and Stack Monitoring comparison.

Each monitored Elastic Stack component is considered unique in the cluster based on its persistent UUID, which is written to the path.data directory when the node or instance starts.

Monitoring documents are just ordinary JSON documents built by monitoring each Elastic Stack component at a specified collection interval. If you want to alter how these documents are structured or stored, refer to Configuring data streams/indices for monitoring.

You can use Elastic Agent or Metricbeat to collect monitoring data and to ship it directly to the monitoring cluster.

In Elastic Cloud Hosted, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes, Elastic manages the installation and configuration of the monitoring agent for you.

You can collect and ship data directly to your monitoring cluster rather than routing it through your production cluster.

The following diagram illustrates a typical monitoring architecture with separate production and monitoring clusters. This example shows Metricbeat, but you can use Elastic Agent instead.

A typical monitoring environment

If you have the appropriate license, you can route data from multiple production clusters to a single monitoring cluster. Learn about the differences between various subscription levels.

Important

In general, the monitoring cluster and the clusters being monitored should be running the same version of the stack. A monitoring cluster cannot monitor production clusters running newer versions of the stack. If necessary, the monitoring cluster can monitor production clusters running the latest release of the previous major version.

Refer to the following topics to learn how to configure stack monitoring:

Tip

Most of these methods require that you configure monitoring of Elasticsearch before monitoring other components.