Added precation notice when internal monitoring collector is used. Closes #11346

Fixes #11511
This commit is contained in:
andsel 2020-01-16 12:37:58 +01:00 committed by Andrea Selva
parent a2044fb5f1
commit 6a412f7afd

View file

@ -104,6 +104,12 @@ module LogStash
return unless monitoring_enabled?(runner.settings)
deprecation_logger.deprecated(
"Internal collectors option for Logstash monitoring is deprecated and targeted for removal in the next major version.\n"\
"Please configure Metricbeat to monitor Logstash. Documentation can be found at: \n"\
"https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html"
)
logger.trace("registering the metrics pipeline")
LogStash::SETTINGS.set("node.uuid", runner.agent.id)
internal_pipeline_source = LogStash::Monitoring::InternalPipelineSource.new(setup_metrics_pipeline, runner.agent)