logstash/x-pack/lib/monitoring
Ry Biesemeyer 8d5e4ffab0 x-pack monitoring: prevent failures to emit metrics events before agent started
Before the monitoring pipeline is started, it is not possible to emit events
from the metrics input; not only is the `agent` nil (resulting in a cryptic
`NoMethodError` when we attempt to get its `ephemeral_id`), but the `queue`
will also be `nil` until the `run` method is invoked.

Instead, start the poller once we are sent `run` and are guaranteed to have a
`queue` on which to put the events; when the snapshot poller is running, skip
any invocations before `agent` is available.

Resolves: elastic/logstash#9462

Fixes #9627
2018-07-05 20:57:02 +00:00
..
inputs x-pack monitoring: prevent failures to emit metrics events before agent started 2018-07-05 20:57:02 +00:00
internal_pipeline_source.rb Migrate x-pack-logstash source to logstash 2018-04-24 10:45:08 -05:00
monitoring.rb Load tests via JUnit (backport of 2ea154a2 to 6.3) (#9579) 2018-05-15 14:57:07 -05:00