Create a Custom SLO :: Kloudfuse Docs
Create a Custom SLO
To create a custom SLO alert, complete these tasks:
- Begin defining an SLO
- Choose the detection method
- Write PromQL Queries
- Set condition
- Add details
- Add contacts
- Create SLO
Begin defining an SLO
Select the Alerts tab, and then the SLO Rules option in the drop-down menu.
In the SLO interface, click (Create New SLO).
The Create SLO interface appears.
Choose the detection method
SLOs have these detection options:
- Latency
select - Availability
select - Metric
select - Custom
select
Here, choose (custom).
Write PromQL Queries
With Custom SLOs, you define your own numerator and denominator using PromQL queries with various metrics.
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:
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 (%).
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.Labels
[Optional] Add labels to attach to the SLO.Time Window
Select the time window for the SLO. Choose between 7 days or 30 days.
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.
Choose Contact Points
Choose one or more of the existing contacts from the drop-down, so they can receive the alert.
To remove a contact you previously selected from the alert notification, click (Delete) icon on their tile.
To remove all contacts that you previously selected, click the (Delete) icon on the right side of the drop-down.
Create New Contact Points
Click (Create New Contact Points).
Kloudfuse opens the Create Contact points interface.
Specify, configure, test, and save new contact points. See Alerts contact points for details.
Create SLO
- To complete creating the SLO, click (Create SLO).
- Kloudfuse reports that "SLO created successfully".
- If you choose not to create the SLO at this time, click (Cancel).
- The new SLO appears in the list of SLOs.