Giter Club home page Giter Club logo

Comments (7)

dsolsona avatar dsolsona commented on July 21, 2024 3

I think, from my limited experience with SLOs, when it comes to choose one rolling window you either go with 30 days or with 28 days. Both seem to be valid and you can find examples of both outside in the world. For us 28 days kind of make sense being it 4 weeks and it seemed easy to reason about.

I don't think it would be the end of the world if we had to use 30d but if it is an easy addition having sane defaults that can be configured seems reasonable.

As to which part, I think it would be everything :)

from sloth.

rbtcollins avatar rbtcollins commented on July 21, 2024 1

We are looking at this with interest. Our existing SLOs are all defined with a 28d window, and there would be some disruption etc to change them. I agree with having simple defaults. Perhaps an enum here rather than a numeric figure would avoid too much complexity and bad behaviour sneaking in.

from sloth.

slok avatar slok commented on July 21, 2024

Hey @dsolsona!

thanks for the kind words, this motivates me a lot.

It was intended to set a default Window of 30d. The purpose of Sloth is to work for the majority of the people in the simplest way, this implies discarding lots of knobs and settings.

Could you explain to me your use case? (as a matter of gathering more information for the feature). For example what windows would you like? why? you would be interested only in the visual part (e.g: Grafana dashboard)? or other aspects like reporting, alerting... all?

Thanks for the issue!

from sloth.

slok avatar slok commented on July 21, 2024

I'll think about it, maybe makes sense to have a small setting for the windows mainly for special cases (and defaulting for 30d like now).

I'll let open the issue for now until we make a decision on this.

Thanks for the info!

from sloth.

slok avatar slok commented on July 21, 2024

Hi @dsolsona @rbtcollins!

I added support for customizing windows (in #182 and #180), I wanted to keep it simple, for now, Sloth only allows using 30 and 28 day time windows. You can use it with the new flag that was added to Sloth --window-days by default 30.

Could you help me test this feature, please? 😄 You have a docker image (before I cut a new release, I would like to grab your feedback first if it is possible):

docker run --rm -it  slok/sloth:6e950ad0b27bda6922709d2b4b6d93630f53f6ac --help

Many thanks!

from sloth.

rbtcollins avatar rbtcollins commented on July 21, 2024

@slok we're not using it yet, please don't wait for a test result from us.

from sloth.

slok avatar slok commented on July 21, 2024

Thanks for the reply @rbtcollins!

No problem, yesterday I released v0.8.0, so you can test whenever you want and raise a new issue if you want!

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.