Giter VIP home page Giter VIP logo

sloth-common-sli-plugins's Introduction

Sloth common sli plugins

CI Go Report Card Apache 2 licensed

Introduction

A collection of common Sloth sli plugins ready to be used on Sloth manifests, or used as examples to create your own.

Getting started

One of the Sloth features are the SLI plugins. These can be loaded dynamically when Sloth is executed and the SLO manifests can reference these plugins and pass some options to set an SLI, instead of writing the SLI query.

To use these plugins you could do:

# Get the plugins.
git clone https://github.com/slok/sloth-common-sli-plugins.git

# Load the plugins and use them (Sloth can load plugins from multiple dirs).
sloth generate -p ./sloth-common-sli-plugins -i {MY_SLO_MANIFEST}

Plugins

Contributing

You can contribute with new plugins the same way the ones in plugins, the process would be this:

  • Create a directory (or/and subdirectories) group in plugins, only if the group would have more than one SLI plugin (e.g app-x, protocol-y, library-z...).
  • Create a directory for each plugin: (e.g availability, latency...).
  • Create a plugin.go file with the plugin and a plugin_test.go for the unit tests.
  • Create an sloth manifest in test/integration to test that sloth can load and use this plugin correctly.
  • Add a README.md on the group and/or the plugin dir and reference the plugin in this readme in plugins section. the readme should have for each plugin at least (example):
    • Introduction.
    • Options.
    • Metric requirements.
    • Usage examples.

You can execute these to test it while developing:

  • make check
  • make test
  • make integration-test

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.