Giter Club home page Giter Club logo

Comments (4)

eddiebarth1 avatar eddiebarth1 commented on July 21, 2024 2

@slok so do we think to work across prometheus instances / thanos across clusters - do we think it could work to have a sloth instance in each cluster housing the raw metrics to only handle recording rules, then a higher-level upstream sloth instance to aggregate alerting?

I guess I'm not positive how that would work across kubernetes clusters - a recording rule created in cluster A won't be query-able from cluster B or C, right? Unless sloth had the ability to query across all clusters to create rules / alerts by somehow pointing to the aggregation point (like Thanos)?

I'm only now getting into the weeds with this, so I'm sure I'm over-simplifying something or misunderstanding something.

from sloth.

slok avatar slok commented on July 21, 2024

Hi @SuperQ!

Thanks for opening the issue.

I don't fully understand what you are suggesting, could you elaborate a bit more please :) At what level do you mean splitting the rules? and using the CLI? k8s operator?

Maybe with an example, I could understand the problem easier.

Many thanks!

from sloth.

SuperQ avatar SuperQ commented on July 21, 2024

So this is the pattern developed to handle this in GitLab's jsonnet-SLI/SLO system:

https://gitlab.com/gitlab-com/runbooks/-/raw/master/metrics-catalog/img/metrics-overview.png

Basically, we have part of the SLI metrics like error rate, traffic rate, etc generated in Prometheus. But because the same services exists in more than one Kubernetes cluster, we used Thanos Rule to evaluate the ratios like error rate / traffic rate globally.

Split the SLI component from the SLI aggregations.

from sloth.

slok avatar slok commented on July 21, 2024

Right! I think I get it.

In the past, the only split feature that was required by a user was "alerts/recordings". The approach taken here was to allow disabling things so people could execute the way they wanted to split the things on their own use case (e.g execute once for alerts, once for recordings):

cmd.Flag("disable-recordings", "Disables recording rules generation.").BoolVar(&c.disableRecordings)
cmd.Flag("disable-alerts", "Disables alert rules generation.").BoolVar(&c.disableAlerts)

Adding different flags to disable SLIs, SLOs, metadata rules... so a user could enable/disable the different types of executions to make their own custom split... Would this multiple disable-flag approach work for you?

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.