-
Notifications
You must be signed in to change notification settings - Fork 816
Add extensible and cacheable statistics to instant and range queries #4630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@bboreham As promised, here's our Cortex-side issue for the stats work we're looking to do. Let me know what you think! |
I asked in CNCF's Slack about possible other stats to expose on a per-query basis. From @thejosephstevens:
I'll try to grab at least a couple of these as a way to show the stats are extensible. |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
still interesting |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
@alanprot what's left to do here? |
Hi.. I think this stats is already extensible... Do you have any statistic u still wanna add @friedrich-at-adobe ? |
Is your feature request related to a problem? Please describe.
At AWS, we want to provide our customers and our operators visibility into the resource cost of queries. We believe there are two kinds of statistics:
Today, statistics are limited to timing. They're also only available for instant queries because of Cortex's range query caching system.
We specifically want to expose sample counts, series counts, and time for both range and instant queries, which we're working on upstream in Prometheus. However, we think it's entirely plausible that the community will find more useful statistics to expose, so we want to make that easy.
Describe the solution you'd like
Assuming our Prometheus work goes forward, the Prometheus engine will support recording sample and series stats, for either the query as a whole or by step in a range query. The statistics struct will be extensible.
In this work, we propose integrating that work into Cortex, exposing those new statistics for instant and range queries. We'd like to extend the extent cache to record stats by step so that partially-cached queries can correctly report their semantic statistics. We'll also expose timing statistics for range queries. We will ensure that it's as easy as possible to add a new kind of statistic in Cortex, ideally by identifying another useful stat as a part of this work.
Describe alternatives you've considered
We've thought about implementing this purely in Prometheus, but the interaction between cached extents and semantic statistics means that we think we need to change Cortex too.
Additional context
prometheus/prometheus#10181 is the corresponding Prometheus issue.
A question for maintainers and the community: are there other statistics that would be useful for us to capture in Cortex specifically?
The text was updated successfully, but these errors were encountered: