thanos-io / promql-engine

Multi-threaded PromQL engine implementation based on the Volcano paper.
Apache License 2.0
131 stars 52 forks source link

Fixing peak sample calculation #443

Closed pedro-stanaka closed 2 months ago

pedro-stanaka commented 2 months ago

Summary

We introduced a new feature to count peak samples and total samples loaded by query executions, but there was a logic problem in the peak samples function in the AnalyzeOutputNode. This PR fixes the problems and also introduces a new way to visualize the query analysis to make sure we dont miss changes on sample counting.