-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
The work described in this issue is a breaking change. As such, it is intended to be released only in a major release (i.e. no backports).
We now have the ability to monitor Elasticsearch, Kibana, Logstash, Beats, and APM Server with Metricbeat. The previous method of monitoring stack products, using collection code internal to each product that shipped monitoring data to a custom Monitoring Bulk API endpoint, is now deprecated. And in the next major release (likely 8.0.0), all code related to this internal collection approach should be removed.
This issue tracks the removal of one specific item related to the internal collection approach: the code within Logstash that periodically collects monitoring metrics to construct logstash_stats and logstash_state documents, and ships them to the custom Monitoring Bulk API in Elasticsearch (POST _monitoring/bulk). Note that settings related to this code (xpack.monitoring.*) should also be removed, including from documentation.
By removing this internal collection code Logstash will no longer be able to monitor itself (for the purposes of the Stack Monitoring application in Kibana). Instead, users will have to run Metricbeat along side Logstash and enable the logstash-xpack module. This module knows how to poll various Logstash APIs to periodically collect monitoring metrics and ship them to the monitoring Elasticsearch cluster.
While removing the internal collection code, be careful to make sure that the various Logstash Monitoring APIs continue to function as-is, as they are required for Metricbeat collection.