Giter Site home page Giter Site logo

Help on Latency SLO definition about sloth HOT 1 OPEN

hdimitriou avatar hdimitriou commented on June 2, 2024 8
Help on Latency SLO definition

from sloth.

Comments (1)

tokheim avatar tokheim commented on June 2, 2024

The normal approach is to consider any request that doesn't meet latency target as a straight up error. This would mean you should use le approach, and tailor le to your desired targets. You can read underlying motivation here https://grafana.com/blog/2019/11/27/kubecon-recap-how-to-include-latency-in-slo-based-alerting/.

For your histogram_quantile approach it seems to calculate error rate as number of time slices with a 98q delay over 1s. It might help smoothing the graphs to make the time slices as small as possible, something like

errorQuery: -
  sum_over_time(
    count(
      histogram_quantile(0.98,
        sum by (le) (rate(<expr>[30s]))
      )
    > 1000)
  [{{.window}}:])

Still drawbacks I see with such an approach are

  • rates each time period as equally important (not taking traffic into account)
  • I wouldn't trust histogram_quantile(..) > 1000 to report accurately unless I also have a le="1000" bucket
  • Seems like an expensive query to execute over large windows

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.