sloctl FAQ
Can I export all Nobl9 resources available in my organization?
You can export all data from our application. For this, run the following script:
for obj in agents alertmethods alertpolicies alerts annotations dataexports directs projects rolebindings services slos
do
sloctl get -A $obj > $obj.yaml
done
How do I set up data export?
If you're a Nobl9 Enterprise edition user, create a YAML definition for the data export and run sloctl apply -f your-dataexport-config.yaml to create it.
Learn more about data export.
Are there any YAML linters available?
For sloctl yaml linting and validation against the yaml specification, you can use, for example, the yamllint tool.
Is it possible to use non-personal token in a pipeline?
Currently, you need to use a personal access token to generate an access token for sloctl.
However, you can create a dedicated user. This approach ensures authorization without binding your personal access token in the pipeline code.
Read the Nobl9 API reference for details on the access token endpoint.
We recommend caching these credentials early on and reusing them in the CI/CD steps, as calling this endpoint a lot can exhaust limits.
How do I detach an alert policy from my SLO?
Run alert_policies = [] to remove an alert policy from the SLO.