logstash/logstash-core/spec/api/lib
Pier-Hugues Pellerin 2fedad3c7d Record the events.in related statistic in the right place
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
2017-03-02 16:31:50 -05:00
..
api Record the events.in related statistic in the right place 2017-03-02 16:31:50 -05:00
commands Refactor API + Add node_stats 2016-05-27 20:01:24 +00:00
errors_spec.rb Return 404 on non existant resources 2016-09-13 14:15:43 -04:00
rack_app_spec.rb Set default log.level to INFO 2016-09-13 16:43:20 -04:00