Skip to content

Commit

Permalink
Added precation notice when internal monitoring collector is used. Cl…
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel committed Jan 27, 2020
1 parent 3eb36bf commit 93f5230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/lib/monitoring/monitoring.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ def after_agent(runner)

return unless monitoring_enabled?(runner.settings)

deprecation_logger.deprecated(
"Monitoring LogStash using internal collector is deprecated and be removed in version 8.0.\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)
Expand Down

0 comments on commit 93f5230

Please sign in to comment.