Skip to content

lokalise/common-sloth-sli-plugins

Repository files navigation

Reference repository: https://github.com/slok/sloth-common-sli-plugins

Development

# Install dependencies
$ go mod tidy

# Run a test for a specific plugin
$ go test plugins/nginx-http/availability/plugin_test.go

Generate rules (for testing)

$ docker run -v $(pwd):/home/nonroot ghcr.io/slok/sloth:v0.11.0 generate -p ./plugins -i example-slo-spec.yaml -o example-prometheus-servicelevel.yaml