Step 2: Configure sloctl
sloctl
.Follow these steps to configure your sloctl
connection:
-
Create a Client ID and Client Secret pair for use in
sloctl
:-
Navigate to Settings > Access Keys on the Nobl9 Web.
-
Click Create Access Key.
tipYou can retrieve Agents'
client_id
andclient_secret
through thesloctl get agents -k
command. See Step 3: Use sloctl commands for details. -
-
Follow the instructions on the Nobl9 Web to configure
sloctl
to use the provided credentials. Use one of the available setup flows:-
Method 1:
Click Download credentials file on the Nobl9 Web, and put the downloaded file in~/.config/nobl9/config.toml
(Linux and macOS) or%UserProfile%\.config\nobl9\config.toml
(Windows). -
Method 2:
Runsloctl config add-context
, name the context, and paste the Client ID and Client Secret from the Nobl9 Web when prompted.
-
-
Test the configuration by entering
sloctl get slos
into the command line.
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.