The calculation of inflight events is incorrect if documents are intentionally discarded in the logstash pipelines via the "drop" processor.
The method "calculateInflightEvents" (
|
inflightEvents := calculateInflightEvents(pipe.Events.In, pipe.Events.Out) |
) determines the current inflight events based on the global IN / OUT values. If documents are dropped in the pipeline, the values gradually diverge.
Steps to reproduce
- create a pipeline with a “drop” processor
- analyze the pipeline statistics via “localhost:9600/_node/stats/pipeline” logstash api.
- compare the values with the output of the Icinga check
The calculation of inflight events is incorrect if documents are intentionally discarded in the logstash pipelines via the "drop" processor.
The method "calculateInflightEvents" (
check_logstash/cmd/pipeline.go
Line 122 in 4bb9291
Steps to reproduce