mimir icon indicating copy to clipboard operation
mimir copied to clipboard

Track reason why a query result is not cached

Open pracucci opened this issue 2 years ago • 1 comments

We should add a metric to track the reason why a query results is not cached, and ensure we have another metric with the total number of queries for which we've the check to compare with.

https://github.com/grafana/mimir/blob/321e66db90cf39e8eb1067aada9064d15cac4ba9/pkg/frontend/querymiddleware/results_cache.go#L176-L194

Originally posted by @pracucci in https://github.com/grafana/mimir/issues/1744#issuecomment-1185265393

pracucci avatar Jul 15 '22 12:07 pracucci

We should also display it in the "Mimir / Queries" dashboard.

pracucci avatar Jul 15 '22 12:07 pracucci