You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@juliusv, we know that we can support retroactive rule evaluation now. Is that sufficient to close this issue, or should it be repurposed to handle the case of "archiving samples after retroactive rule evaluation"?
It's not our top priority, but persisting timeseries resulting from rule evaluations against historical data is still a nice-to-have feature, so we can keep this around.
It's not our top priority, but persisting timeseries resulting from rule
evaluations against historical data is still a nice-to-have feature, so we
can keep this around.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-15575551
.
Hi, I would like to start a new discussion on this.
Basically, there are some clear benefits of having some back-in-time rule evaluation option for Prometheus.
Currently, there are certain UX issues while using rules. Let's have some basic example from a user perspective:
I created some cool, new metric.
I created some fancy dashboard.
Everybody loves my dashboard and it's quite popular, so I want to create a rule for the query used there to take out some load from Prometheus.
I created a rule.
Problems:
How to test my rule? I need to wait some time to have it filled to check if I got it right for a longer period (that could include interesting cases). That requires lot's of context switches in my work and frustration (multiple frustrations by 100x when one is a newbie in PromQL)
I cannot immediately put my rule on the dashboard because it's not yet filled
I totally agree that this is not critical and quite hard to achieve when we are talking about persisting new time series back in time when that time range is already packed in blocks and maybe even compacted or backed up/downsampled in case of thanos or remote-written.
But what about some simple solution (A), for example:
User created new rule
If flag XXX is set (or certain RPC is invoked on API), reevaluate the rule against all samples you have in memory (WAL)
The only unknown here is remote write, but when we make this feature optional - you can control if you want to have back-in-time rule evaluation or not.
Or maybe another option (B):
User created new rule
Backfill the rule in ephemeral space only (mem only) up to flag-rule-reeval-time or API RPC argument to make testing and using this rule on dashboards easier. "Past" samples will be ephemeral. Only new samples will be written normally.
Could you please wait for the previous issues to be settle on? We also
probably want to agree on a small design document first.
Le lun. 24 févr. 2020 à 16:53, Harkishen Singh <[email protected]> a
écrit :
Activity
matttproud commentedon Mar 28, 2013
@juliusv, we know that we can support retroactive rule evaluation now. Is that sufficient to close this issue, or should it be repurposed to handle the case of "archiving samples after retroactive rule evaluation"?
juliusv commentedon Mar 28, 2013
It's not our top priority, but persisting timeseries resulting from rule evaluations against historical data is still a nice-to-have feature, so we can keep this around.
matttproud commentedon Mar 28, 2013
Great. I'll re-title this issue. :)
2013/3/28 juliusv [email protected]
Merge pull request #11 from matttproud/feature/include-instance-uptime
brian-brazil commentedon Dec 16, 2015
My thoughts on this are to permit backfilling via the API, and then we can have a separate tool that does this.
Merge pull request #11 from tomwilkie/merge-master
Merge pull request #11 from brian-brazil/move-rules
bwplotka commentedon Mar 16, 2018
Hi, I would like to start a new discussion on this.
Basically, there are some clear benefits of having some back-in-time rule evaluation option for Prometheus.
Currently, there are certain UX issues while using rules. Let's have some basic example from a user perspective:
Problems:
I totally agree that this is not critical and quite hard to achieve when we are talking about persisting new time series back in time when that time range is already packed in blocks and maybe even compacted or backed up/downsampled in case of thanos or remote-written.
But what about some simple solution (A), for example:
The only unknown here is
remote write, but when we make this feature optional - you can control if you want to have back-in-time rule evaluation or not.Or maybe another option (B):
flag-rule-reeval-timeor API RPC argument to make testing and using this rule on dashboards easier. "Past" samples will be ephemeral. Only new samples will be written normally.Any thoughts?
CC @juliusv @brian-brazil @fabxc @devnev
13 remaining items
supra08 commentedon Feb 12, 2020
Hi @juliusv @codesome, I am looking forward to contribute to Prometheus and participate in GSOC 2020. How can I proceed with this project?
harkishen commentedon Feb 24, 2020
I am taking this up. Thank you.
roidelapluie commentedon Feb 24, 2020
yeya24 commentedon Feb 24, 2020
Hi, I already implemented this feature https://github.com/yeya24/backfiller here, but blocked on upstream promtool importer. Can I take this?
codesome commentedon Feb 25, 2020
this ^
And there are many takers here :)
@Harkishen-Singh @yeya24: are you both planning to participate in GSoC as well?
harkishen commentedon Feb 25, 2020
Yes
bwplotka commentedon May 7, 2020
Available as Community Bridge project.
yeya24 commentedon May 11, 2020
Hello, 👋 I just started a design doc for this feature. https://docs.google.com/document/d/1h2MBA-tc2ALYBTr5b2bKLmQBaRP2aVJQOLNsIDFo8W4/edit?usp=sharing
I didn't add many detailed there, just some high-level ideas. Feel free to edit and comment on the doc directly!
Abhik1998 commentedon May 17, 2020
Hello, I want to take this up as a community bridge mentee project.
Godtide commentedon May 20, 2020
Hi, @bwplotka I'm looking to work on this project as a community bridge mentee. How do we get started, already have my resume on the Portal
Merge pull request prometheus#11 from stevewatanabe/basicAuthv2.22
codesome commentedon May 4, 2021
Closed by #7675
roidelapluie commentedon May 4, 2021
For the remaining tasks see #8667