Skip to main content

Step 2: Configure sloctl

Reading time: 0 minute(s) (0 words)
See how to configure sloctl.

Follow these steps to configure your sloctl connection:

  1. Create a Client ID and Client Secret pair for use in sloctl:

    • Navigate to Settings > Access Keys in the web UI.

    • Click Create Access Key.

    tip

    You can retrieve Agents' client_id and client_secret through the sloctl get agents -k command. See Step 3: Use sloctl commands for details.

  2. Follow the instructions in the UI to configure sloctl to use the provided credentials. Use one of the available setup flows:

    • Method 1:
      Click Download credentials file in the web UI, and put the downloaded file in ~/.config/nobl9/config.toml (Linux and macOS) or %UserProfile%\.config\nobl9\config.toml (Windows).

    • Method 2:
      Run sloctl config add-context, name the context, and paste the Client ID and Client Secret from the web UI when prompted.

  3. Test the configuration by entering sloctl get slos into the command line.

note

If there are no SLOs created in your account or in the selected project, you might see this message: No resources found in default project. This indicates that the configuration is correct; if it’s not, the command will return a 401 error.

Great, now you can carry on to to see how sloctl can help you manage your SLOs!