Skip to main content

Reviews with sloctl

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

You can set a review status for an SLO using sloctl.

Review schedules
Enterprise

The SLO review feature is available only in the Nobl9 Enterprise Edition.

๐Ÿงชsloctl version requirements

Update sloctl to version 0.18.0 or higher to manage SLO review statuses.

To set a review status for an SLO, run the following command:

sloctl review set-status reviewed cpu-usage

Where reviewed is the target status, and cpu-usage refers to the SLO name.

The following subcommands (statuses) are accepted:

StatusDescriptionSLO review status after
not-startedDiscard the SLO's previous review status
Available only for SLOs from services without a review schedule
notStarted
to-reviewThe SLO is waiting for a scheduled review
Available only for SLOs from services with a scheduled review
toReview
reviewedMark the SLO as reviewed
Available for any SLO, regardless of the service review schedule
reviewed
skippedIndicate that a scheduled SLO review is intentionally skipped
Available only for SLOs with a scheduled review
skipped
overdueIndicate that a scheduled SLO review was not completed on time
Available only for SLOs with a scheduled review
overdue

With every status transition, Nobl9 generates an annotation. The annotation contains the status transition details and a Review note. To modify the review note, use the optional --note flag when setting the review status. This flag is available when transitioning the SLO to the reviewed and skipped statuses.

To specify the project, use the --project or -p flag. When no project is provided, sloctl searches for the SLO in your default project, as set in your sloctl configuration.

Example
sloctl review set-status skipped cpu-usage -p customer-facing-applications -n "Insufficient data for this period"
  • Set the Skipped review status
  • For the CPU usage SLO
  • From the Customer-facing applications project, which is not the default project
  • Modify the review note for this status transition. Once the command is executed, Insufficient data for this period appears in the Review note field of the generated annotation.

Status transitions in a nutshellโ€‹

An SLO's review status can change in two ways: manually or automatically based on the review schedule.

Manual status transitions depend on two factors: whether a review is scheduled for the SLO's service and what its current status is.

The following table lists allowed transitions between statuses, considering the review schedule existence. Rolling back is available for all transitions listed.

Table: Allowed manual status transitions based on review schedule

Is review scheduled?FromTo
NoNot started / notStartedReviewed / reviewed
YesTo review / toReviewReviewed / reviewed
YesTo review / toReviewSkipped / skipped
YesSkipped / skippedReviewed / reviewed
YesOverdue / overdueReviewed / reviewed
YesOverdue / overdueSkipped / skipped
Manual status transition based on review schedule and status
Manual status transition based on review schedule and status
Check out these related guides and references: