Skip to content

Persist Retroactive Rule Reevaluations #11

Closed

Description

@juliusv

We can already reevaluate queries on old data, but we should be able to persist that for a certain window from [Oldest, Now).

Activity

  1. ghost assigned on Jan 4, 2013
  2. matttproud commented on Mar 28, 2013

    @matttproud
    Contributor

    @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"?

  3. juliusv commented on Mar 28, 2013

    @juliusv
    MemberAuthor

    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.

  4. matttproud commented on Mar 28, 2013

    @matttproud
    Contributor

    Great. I'll re-title this issue. :)

    2013/3/28 juliusv [email protected]

    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
    .

  5. added a commit that references this issue on Apr 9, 2014
  6. brian-brazil commented on Dec 16, 2015

    @brian-brazil
    Contributor

    My thoughts on this are to permit backfilling via the API, and then we can have a separate tool that does this.

  7. added a commit that references this issue on Jul 18, 2016
  8. added a commit that references this issue on Oct 12, 2017
  9. bwplotka commented on Mar 16, 2018

    @bwplotka
    Member

    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:

    1. 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)
    2. 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.

    Any thoughts?

    CC @juliusv @brian-brazil @fabxc @devnev

  10. 13 remaining items

  11. supra08 commented on Feb 12, 2020

    @supra08

    Hi @juliusv @codesome, I am looking forward to contribute to Prometheus and participate in GSOC 2020. How can I proceed with this project?

  12. harkishen commented on Feb 24, 2020

    @harkishen
    Contributor

    I am taking this up. Thank you.

  13. roidelapluie commented on Feb 24, 2020

    @roidelapluie
    Member
  14. yeya24 commented on Feb 24, 2020

    @yeya24
    Contributor

    I am taking this up. Thank you.

    Hi, I already implemented this feature https://github.com/yeya24/backfiller here, but blocked on upstream promtool importer. Can I take this?

  15. codesome commented on Feb 25, 2020

    @codesome
    Member

    We also probably want to agree on a small design document first.

    this ^

    And there are many takers here :)
    @Harkishen-Singh @yeya24: are you both planning to participate in GSoC as well?

  16. harkishen commented on Feb 25, 2020

    @harkishen
    Contributor

    @Harkishen-Singh @yeya24: are you both planning to participate in GSoC as well?

    Yes

  17. bwplotka commented on May 7, 2020

    @bwplotka
    Member

    Available as Community Bridge project.

  18. yeya24 commented on May 11, 2020

    @yeya24
    Contributor

    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!

  19. Abhik1998 commented on May 17, 2020

    @Abhik1998

    Hello, I want to take this up as a community bridge mentee project.

  20. Godtide commented on May 20, 2020

    @Godtide

    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

  21. added a commit that references this issue on Mar 16, 2021
  22. codesome commented on May 4, 2021

    @codesome
    Member

    Closed by #7675

  23. roidelapluie commented on May 4, 2021

    @roidelapluie
    Member

    For the remaining tasks see #8667

  24. locked as resolved and limited conversation to collaborators on Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions