For better observability of the bloom gateway, this PR adds two
additional metrics that expose the amount of chunk refs pre and post
filtering. This can be used to calculate the filter ratio of the
gateways.
The PR also adds a metric that observes the latency of the actual
processing time of bloom filters within the worker.
---------
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
* Add wait until processed
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Add query lines
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Remove Cortex reference
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Add deleted lines metric and check in test
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Set negative cancel period so default 1 minute delay is compensated for
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Reduce timeout
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Add helper function
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Comment out assertions that only work with flush
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Remove unused metric type param
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Check counter in unit test
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Rename ClientOption to Option as per the linter
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* Remove redundant check
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
* fill in MsgAndArgs field of test assertion
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>