Giter Club home page Giter Club logo

Comments (2)

slok avatar slok commented on July 21, 2024

Hi @nextrevision!

Thanks!

If I understood the problem correctly, Once Prometheus stops handling the rules and Thanos is the only one processing them, eventually, the Sloth metrics created by Prometheus will disappear, however that would be too long.

After Thanos is the only one processing the Sloth-generated rules, I suggest you change the SLO name, this will change the ID and it will be a new one that will not collide with the previous one.

e.g: http-availability-sloth-sample to http-availability-sloth-sample-v2, like a new iteration of the SLO.

Regarding Thanos and prometheus-operator, I don't use Thanos myself, however, I guess you already know/seen that the K8s labels you use on Sloth's CR, will be set on the generated prometheus-operator CR rules, so, having different rule selectors for the Prometheus RuleSelector and Thanos RuleSelector rules should be enough.

Hope this helps!

from sloth.

nextrevision avatar nextrevision commented on July 21, 2024

Thanks for the response and that helps a ton! I somehow missed the ruleSelector in the prometheus spec. That coupled with the v2 change worked wonderfully.

Thanks again!

from sloth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.