mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 14:17:58 -04:00
This PR changes where the `events.in` are calculated, previously the values were calculated in the `ReadClient` which was fine before the addition of the PQ, but this make the stats not accurate when the PQ was enabled and the producer are a lot faster than the consumer. These commits change the collection of the metric inside an instrumented `WriteClient` so both implementation of the client queues will use the same code. This also make possible to record `events.out` for every inputs and the time waiting to push to the queue. The API is now exposing theses values for each plugins, the events level and and the pipeline. Using a pipeline with a sleep filter and PQ we will see this kind of response from the API. ```json { "duration_in_millis": 438624, "in": 3011436, "filtered": 2189, "out": 2189, "queue_push_duration_in_millis": 49845 } ``` Fixes: #6512 Fixes #6532 |
||
---|---|---|
.. | ||
api | ||
commands | ||
errors_spec.rb | ||
rack_app_spec.rb |