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 either manually or automatically, based on the following:

  • The existence of a review schedule enables automatic transitions
  • The current status of the SLO determines which transitions are possible
  • Certain statuses, like Reviewed and Skipped, can only be set manually

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

The table below outlines the manual status transitions that are permitted, based on whether a review is scheduled. It is possible to change the status more than once within a single review cycle.

Table: Allowed manual status transitions

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
Status transition reference

Table: Example of a biweekly review cycle with the start date on November 18

Starting statusStatus on November 18 (auto)During the cycle (manual)Status on December 2 (auto)During the cycle (manual)Status on December 16 (auto)
Not started, Skipped, ReviewedTo reviewStatus updated to Skipped or ReviewedTo reviewNot reviewed, nor skippedOverdue
To reviewOverdueNot reviewed, nor skippedOverdueStatus updated to Skipped or ReviewedTo review

Table: Possible review status transitions

Status beforeScenarioStatus afterTransition type
Not startedAdd a review schedule; start date is now or earlierTo reviewAuto
Not startedReview an SLO without the scheduleReviewedManual
To review, Skipped, OverdueReview an SLOReviewedManual
To review, OverdueSkip an SLO reviewSkippedManual
To reviewMove an SLO to a service without a review scheduleNot startedAuto
To review, OverdueNew review cycle starts; SLO hasn't been reviewedOverdueAuto
SkippedNew review cycle startsTo reviewAuto
ReviewedNew review cycle startsTo reviewAuto

Table: Scenarios not resulting in status transition

StatusScenario
Not startedSet a review schedule with the start date in the future
All statusesโ€ข Move an SLO to a service with a review due date in the future
โ€ข Defer a review due date
Reviewedโ€ข Discard a review schedule
โ€ข Move an SLO to a service without a scheduled review
Overdueโ€ข New review cycle starts
โ€ข Modify a review schedule
Check out these related guides and references: