nobl9 / sloctl

A command line tool to cast SLO spells

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

N9

checks tests vulnerabilities

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

  1. Download Dockerfile and latest linux sloctl binary from the Releases page. Make sure they are in your working directory.

  2. Build the image:

    docker build -t <NAME_YOUR_IMAGE> .
  3. Set environment variables if you plan to use them for authenticating with SLOCTL. Reference the sloctl environment variables Doc.

  4. 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

About

A command line tool to cast SLO spells

License:Mozilla Public License 2.0


Languages

Language:Go 67.6%Language:Shell 24.0%Language:Makefile 5.6%Language:JavaScript 1.9%Language:Smarty 0.5%Language:Dockerfile 0.3%Language:Awk 0.2%