-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
querier: Limit LabelNames; LabelValues to certain time period. #1811
Comments
Do I understand correctly this does not affect the query execution and any memory limits for that? |
Which memory limits you have in mind? |
The limits on memory taken during query execution, as this PR attempts to address. |
Yes, I still don't see how limits improve those methods. This issue is required to be able to have this: #1813 |
I would be glad to work on this. Few questions:
FYI, Cortex doesn't enforce any short default for the |
Nice!
yes
We can introduce a breaking change if needed, but we need to be explicit in changelog. The question is, should we? So what makes me think we should have I think simultaneously we should start a discussion about:
In terms of |
I personally think this should actually even be a query parameter on the API endpoints. I believe there are even issues about this on Prometheus. A Prometheus with many blocks is just as affected by this as Thanos/Cortex are. I feel by default those endpoints should only respond with the active label names/values everywhere. |
I'd challenge this fact, and I've been bitten by this in post-mortems where I set the time picker in Grafana to the time of incident and then tried to get typeahead suggestions for instances that at the time of querying were long gone. |
I agree with the functionality and latency aspect. As I mentioned:
In terms of Thanos there is a clear improvement to be done for series http://github.com/thanos-io/thanos/issues/1822 Overall I think we should be able to return those in a reasonable time from old storage. @davkal so if Prometheus upstream would have |
Theoretically yes. But so far it's been more nuanced:
When time parameters are supported by the API, it's trivial to plug them in for both dashboards and Explore. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I believe this is still something we want to work on. |
This issue/PR has been automatically marked as stale because it has not had recent activity. Please comment on status otherwise the issue will be closed in a week. Thank you for your contributions. |
Still valid. |
TODO: Propose a new API to Prometheus. cc @rnaveiras |
Proposed: prometheus/prometheus#6865 |
This issue/PR has been automatically marked as stale because it has not had recent activity. Please comment on status otherwise the issue will be closed in a week. Thank you for your contributions. |
Still needed (: |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Blocked on Prometheus issue.
…On Fri, 1 May 2020 at 18:42, stale[bot] ***@***.***> wrote:
Hello 👋 Looks like there was no activity on this issue for last 30 days.
*Do you mind updating us on the status?* Is this still reproducible or
needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we
can always reopen an issue if we need!). Alternatively, use remind command
<https://probot.github.io/apps/reminders/> if you wish to be reminded at
some point in future.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1811 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3O6DPOZIIOOI2WARVQDRPMCYPANCNFSM4JSUGFDA>
.
|
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
This is done on Prometheus, so we can do here as well.
…On Mon, 1 Jun 2020 at 10:05, stale[bot] ***@***.***> wrote:
Hello 👋 Looks like there was no activity on this issue for last 30 days.
*Do you mind updating us on the status?* Is this still reproducible or
needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we
can always reopen an issue if we need!). Alternatively, use remind command
<https://probot.github.io/apps/reminders/> if you wish to be reminded at
some point in future.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1811 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3O2MXHBHZ5EJE2UPFWTRUNVNNANCNFSM4JSUGFDA>
.
|
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
This was done on Prometheus side, so we can start using it! Help wanted |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
The params were added but limit not introduced yet @kakkoyun is working on it. |
Something that Cortex is doing is that
LabelNames;LabelValues
by default are limited to active series only on ingesters (so let's say in Thanos world to Thanos receiver or Prometheus for latest 2h). This is due to the fact that when you query you are usually interested in autocompletion for fresh metrics.We are now exploring if we can apply the same logic for Thanos e.g limit
LabelNames
andLabelValues
andSeries
(by default) on Querier QueryAPI to 2h.IF we don't do it, StoreGateway will have to load portions of the blocks in memory for full-time retention, for all store APIs, which is something we wanted to avoid. It was briefly mentioned here: #39 Also currently this is limited to raw data only, so it's already scoped for certain setups with retention for older blocks.
The text was updated successfully, but these errors were encountered: