sloctl
Is there a way to retrieve all my SLOs, alert policies, alerts, and other data from Nobl9?โ
- Yes, you can export all the data from our application by using 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
Is there a way to set up a data export through sloctl
?โ
sloctl
?โ- Yes, but itโs a premium feature. You can find the detailed explanation in the YAML Guide | Nobl9 Documentation .
I keep getting 400 error when getting a new access token from the customer identity provider while configuring sloctl
.โ
sloctl
.โ- If youโre getting the following error, try disabling a VPN:
Error: error getting new access token from the customer identity provider:
cannot access the token, customer identity provider replied with 400 {"errorCode":"invalid_client",
"errorSummary":"A client_id must be provided in the request.","errorLink":"invalid_client",
"errorIdโ:โxxxxxxx,โerrorCauses":[]}
Are there any linting or validating tools for sloctl yaml
files?โ
sloctl yaml
files?โ- For the linting and validation of the
sloctl yaml
against theyaml
spec, you can use, for example, theyamllint
tool to validate if it'ss a valid yaml document.
I need an access token to use sloctl
and create resources in Nobl9. How can I handle authorization in a CI/CD flow if I donโt want to bind personal access tokens into a pipeline code? Is there any mechanism to get project-level credentials and use them in sloctl?โ
sloctl
and create resources in Nobl9. How can I handle authorization in a CI/CD flow if I donโt want to bind personal access tokens into a pipeline code? Is there any mechanism to get project-level credentials and use them in sloctl?โ- You can create such user manually and use it to generate credentials in your CI/CD, check out our API Documentation . Nobl9 provides
POST
endpoint that you can use to get the token to be used bysloctl
or with our annotations API. You have to replace thehttps://replace-me.nobl9.dev/api
with thehttps://app.nobl9.com/api
. Note that there's a CORS issue there that prevents you from testing the API directly through swagger. You should also cache these credentials early on and reuse them in the CI/CD steps, as calling this endpoint a lot might exhaust limits.