-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support 0 for model.Duration in the table manager #1839
Comments
PR to Prometheus. prometheus/common#226 let's see. |
Prometheus won't accept this PR. I don't think it's worth wasting time arguing or pushing further. We'll have to use the new |
Change of plan upstream Prometheus accepted the PR. We need to update cortex and then get that into Loki. Should be easy for anyone to take it. |
Hi @cyriltovena i would like to do some work on this. Could you get me up to speed quickly on this? :) |
Sure:
Maybe you should wait for #1869 before starting anything so you don't get conflicts. |
Will do. 🙂 Just going to start on one of the other issues. |
Hi again @cyriltovena From what I can tell, PRs should be merged for dependencies. Are you still missing this update or did it already get merged with resolution of #1869? |
I need to check |
I just came across an error that I suppose would be fixed by resolving this issue.
It seems this line still uses |
@mmedum This is still an issue and this hasn't been fixed by #1869. If you want to take this, first open a PR on cortex to update prometheus/common there to latest. Once it's merged in cortex, open a PR here to update cortex to latest. Good luck ✌️ @lukashass you're probably hitting another one.
Use this instead of the default and the error will go away. |
@cyriltovena Thanks. But maybe I am a bit useless, from what I can see, cortexproject/cortex uses prometheus/common lastest already. I have in my fork updated loki to use cortexproject/cortex v1.0.0, as that is the lastest release from what I can tell. But it seems I am hitting a snag with:
|
Let me check |
So Cortex doesn't use latest prometheus/common, you can either try to overrides in Loki or update it first in Cortex. |
I'm following the Tanka installation guide, and I'm running into the same problem. What keys in the jsonnet need to be updated to be |
I think I resolved with this below. It would be nice if the defaults just worked.
|
Recently the table manager period has been changed to use
model.Duration
from Prometheus because of a vendoring in Cortex. see https://github.com/grafana/loki/blob/master/vendor/github.com/cortexproject/cortex/pkg/chunk/table_manager.go#L95 and #1838The problem is that before
time.Duration
was supporting the value 0. Before it propagates to other fields we should try to suggest in the prometheus common project a change to support the 0 value. Then backport this to Cortex and Loki.The text was updated successfully, but these errors were encountered: