Create a Custom SLO

Begin defining an SLO

  1. Select the Alerts tab, and then the SLO Rules option in the drop-down menu.

    Navigate to the SLO Interface
  2. In the SLO interface, click Create New SLO (Create New SLO).

    Create New SLO
  3. The Create SLO interface appears.

Step 1 Choose the detection method

SLOs have these detection options:

Latency

select Latency detection

Availability

select Availability detection

Metric

select Metric detection

Custom

select Custom detection

Here, choose Custom detection (custom).

Choose Custom Detection Method

Step 2 Write PromQL Queries

With Custom SLOs, you define your own numerator and denominator using PromQL queries with various metrics.

Write PromQL Queries

Step 3 Set condition

There are some differences in the process of setting the alerting condition, depending on the detection method.

For a Custom SLO, set the objective condition:

set objective condition

Hover over the value set. When it becomes mutable, either type in the value, or adjust it using the "higher" and "lower" selectors.

+ Note that the units are the percentage (%).

Step 4 Add details

Add details

Provide details for the SLO: Add the name and description for the SLO, and select which folder the SLO should be added to.

Name

Kloudfuse automatically creates this immutable name, based on the SLO type and your custom query configuration.

Description

[Optional] Enter a distinct and meaningful name for the SLO.

This is an optional step. If you choose to complete it, you create an accompanying alert for the SLO. If you leave the Contact Points field blank, you can still create a valid SLO.

You can either Choose Contact Points, or Create New Contact Points and then choose them.

Add contacts

Choose Contact Points

  1. Choose one or more of the existing contacts from the drop-down, so they can receive the alert.

  2. To remove a contact you previously selected from the alert notification, click delete (Delete) icon on their tile.

    alerts remove contact point
  3. To remove all contacts that you previously selected, click the delete (Delete) icon on the right side of the drop-down.

    alerts remove contact point all

Create New Contact Points

  1. Click Create New Contact Points (Create New Contact Points).

    alerts create contact points
  2. Kloudfuse opens the Create Contact points interface.

    Specify, configure, test, and save new contact points. See Alerts contact points for details.

Create SLO

  1. To complete creating the SLO, click Create SLO (Create SLO).

  2. Kloudfuse reports that "SLO created successfully".

  3. If you choose not to create the SLO at this time, click Cancel (Cancel).

  4. The new SLO appears in the list of SLOs.