Skip to main content

SLO objective unique identifier

Reading time: 0 minute(s) (0 words)

Every SLO objective you create with Nobl9 features a name identifier in the YAML definition.

When you create a new SLO without specifying the name, Nobl9 generates it automatically as you're entering the display name for this objective. You can then update the name only through sloctl. Such a modification is allowed only using sloctl and only once per objective. To edit the objective's name, you can do the following:

  • run sloctl get slos and replace the files in your repository with those returned by the command, or
  • run sloctl get slos, change the generated names, and then run apply (optional).
note

You can’t change the name once you’ve updated it.

Nobl9 requires the name value to be unique across all objectives within a single SLO. Also, the objective name is required in YAML files. Once you save the objective, name becomes read-only.

Here’s a YAML example for SLO objectives:

objectives:
- displayName: Good
name: objective-1
op: lte
rawMetric:
query:
prometheus:
promql: 'cpu_usage_user{cpu="cpu-total"}'
value: 7.5
target: 0.9
- displayName: Poor
name: objective-2
op: lte
rawMetric:
query:
prometheus:
promql: 'cpu_usage_user{cpu="cpu-total"}'
value: 9.5
target: 0.99