sloctl
sloctl copied to clipboard
A command line tool to cast SLO spells
|
|
|
|
Sloctl is a command-line interface (CLI) for Nobl9. You can use the sloctl CLI for creating or updating multiple SLOs and objectives at once as part of CI/CD.
The web user interface is available to give you an easy way to create and update SLOs and other resources, while sloctl aims to provide a systematic and/or automated approach to maintaining SLOs as code.
For more details check out sloctl user guide.
Install
Prebuilt Binaries
The binaries are available at Releases page.
Go install
go install github.com/nobl9/sloctl/cmd/sloctl@latest
Homebrew
brew tap nobl9/sloctl
brew install sloctl
Docker
docker pull nobl9/sloctl
Build Docker image locally
-
Download Dockerfile and latest linux sloctl binary from the Releases page. Make sure they are in your working directory.
-
Build the image:
docker build -t <NAME_YOUR_IMAGE> . -
Set environment variables if you plan to use them for authenticating with SLOCTL. Reference the sloctl environment variables Doc.
-
Run the image:
docker run -e SLOCTL_CLIENT_ID=$SLOCTL_CLIENT_ID \ -e SLOCTL_CLIENT_SECRET=$SLOCTL_CLIENT_SECRET \ <YOUR_IMAGE_NAME> get slos --no-config-file