Giter Club home page Giter Club logo

Comments (4)

slok avatar slok commented on July 21, 2024

Hi @joegalley!

I would say that is not related to the plugins. OpenSLO spec doesn't support Sloth's SLI plugin system.

Check this issue #135 Somebody had the same issue and I couldn't reproduce it, I could use Sloth on windows correctly.

Check if the downloaded spec is not empty, or you don't have permission to load it.

Regading whats an SLI plugin. Plugins are a way of abstracting the SLI (query) from the user, like when in programming you use a library and you don't need to know the underneath implementation. This would be something similar but for SLIs.

For example one person/team creates the plugin, another person/team uses it by referencing the plugin. E.g:

Normally you could set this on the spec:

#...
    sli:
      events:
        error_query: sum(rate(http_request_duration_seconds_count{job="myservice",code=~"(5..|429)"}[{{.window}}]))
        total_query: sum(rate(http_request_duration_seconds_count{job="myservice"}[{{.window}}]))
#...

Having a plugin for that SLI. you could use like this:

#...
    sli:
      plugin:
        id: "my-company/services/availability"
#...

This abstracts the queries and gains things like:

  • Could create standards across the company.
  • Have a repository/index of plugins for common used applications
  • Boost best practices on queries by having people with a lot of Prometheus knowledge maintain the plugins
  • Centralizes the SLI queries (update in one place, deliver to all the plugin users).

Best.

from sloth.

 avatar commented on July 21, 2024

Hello

I encounter the same issue on windows. The problem is simply related to carriage return encoding:

  • with CRLF it fails
  • with LF it's OK

I have not digged into the code, but it might be possible to fix that.

from sloth.

slok avatar slok commented on July 21, 2024

Thanks for the info @stephanecazeaux, it's very valuable!

from sloth.

joegalley avatar joegalley commented on July 21, 2024

@stephanecazeaux This fixed my issue, thank 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.