Step 3: Use sloctl
commands
sloctl
commands.Below, you can find a summary of all sloctl
commands.
Root commands
The following are the available commands in sloctl
. When entered on the command line they should all be preceded by sloctl
; for example, sloctl delete
.
Command | Description |
---|---|
add-context | Add a new sloctl configuration context. |
apply | Apply a resource definition in YAML or JSON format. sloctl apply supports glob patterns when using the -f flag. It extends it with the support of '**' for recursive reading of files and directories. For more information, refer to the sloctl user guide. |
completion | Generate the autocompletion script for sloctl for the specified shell. |
delete | Delete a resource definition (specified by name or definition file). sloctl delete supports glob patterns when using the -f flag. It extends it with the support of '**' for recursive reading of files and directories. For more information, refer to the sloctl user guide. |
get | Display one or more resources. |
help | Get help on any command. |
replay | Get historical data for an SLO. |
use-context | Set the default context. |
version | Print the sloctl version. |
Object arguments follow the [command]
argument in the sloctl
command line:
sloctl [command] [object]
You can use the root commands with the following objects:
Object | Description |
---|---|
agents | Provide a solution to metrics collection from external sources. In this solution, users deploy the agents. |
alertmethods | Allow you to send alerts to specific notification engines or tools when an incident is triggered. |
alertpolicies | Define a set of conditions that, when met, cause an alert to be a sent to a predefined list of integrations. |
alertsilences | Silence alerts for a defined period not to receive notifications when an alert event is triggered. |
alerts | Allow notifications to be sent about SLOs when certain conditions are met. |
annotations 1 | Allows you to add annotations and manage them on the SLO or SLO objective level. |
dataexports | Define a configuration to export your data from Nobl9. |
directs | Provide a SaaS solution to metrics collection from external sources. |
projects | Serve as workspaces for resources and provide a layer of isolation for resources in different projects. |
rolebindings | Assign a user the permissions indicated in a role. |
services | Serve as high-level groupings of SLOs. |
slos | Define a set of target values for an SLO. |
1 sloctl
does not return system annotations. When applying the sloctl get annotation[s]
command, sloctl
will return only annotations created by the user.
Config commands
The following are the available config commands in sloctl
. When entered in the command line they should all be preceded by sloctl config
; for example, sloctl config use-context
:
Command | Description |
---|---|
add-context | Add a new sloctl configuration context. |
current-context | Display current context. |
delete-context | Delete chosen context. |
get-contexts | Display all available contexts. |
rename-context | Rename chosen context. |
use-context | Set the default context. |
For more information, refer to sloctl user guide.
You can find the Nobl9 exemplary configurations in the .yaml
format in the YAML guide.