Step 4: Create SLO
SLOs allow you to define the reliability of your products and services in terms of customer expectations. You can create SLOs for user journeys, internal services, or even infrastructure.
With a service and its data sources configured, you can define the thresholds for Service Level Indicators. Together with a time window, these create a unique SLO.
To create an SLO in the Nobl9 UI:
- Go to the Service Level Objectives page.
- Click the button to start the SLO Wizard, and follow the five-step configuration process in the wizard.
- In step 1 of the SLO Wizard:
- In step 2 of the SLO Wizard:
- Threshold Metric
- Ratio Metric
- For the Non-incremental method, we expect it to be the components of the sum.
- For the Incremental method, we expect the value of a metric to be the current sum of some numerator.
- In step 3 of the SLO Wizard:
- In step 4 of the SLO Wizard:
- Enter SLO objective Display Name. The Display Name allows you to enter a name with spaces.
- Enter unique SLO objective Name. The Name is required and can only contain lowercase, alphanumeric characters, and dashes. For example:
- Enter the Target. Define the percentage of good events out of total events that you want to meet the target values for the SLI.
- If you selected the Time Slices method as an Error Budget Calculation Method:
- Enter the Time Slice Allowance. Define the percentage of the time slice for which you want to meet that Target. This is used to determine if a time slice should be considered good or bad.
- Enter the target Values. Compare the values gathered from the metric source. For example, if
- Below, you can see a query provided in step 2 of the SLO Wizard. You can modify the query for each added objective.
- In step 5 of the SLO Wizard:
- Enter SLO Display Name. The Display Name allows you to enter a name with spaces.
- Enter SLO Name. The Name is required and can only contain lowercase, alphanumeric characters, and dashes. For example:
- Check the Create Composite SLO checkbox if you want to create a Composite SLO. For more information on Composite SLO, refer to the Composite SLO guide.
- Select Alert Policies from the drop-down list to configure alerts. For more information, go to the Create Alerts SLOcademy section.
- Select or add Labels. For more information on Labels, check the Labels section.
- Attach a Link to your SLO (optional). You can add up to 20 links to an SLO.
- Enter a Description (optional). Here you can add details such as who is responsible for the SLO (team/owner) and the purpose of creating it.
- Click the Create SLO
For the Ratio Metric, choose the Data Count Method:
Define a Time Window
Select the Error Budget Calculation Method
Add your SLO Objective(s)
You can define up to 12 objectives for an SLO:
Values less than 200is the objective for a
Goodexperience, values below 200 are considered good.
Define SLO Attributes
my-slo-name. This field is populated automatically when you enter a display name, but you can edit the result.
Enter a Display Name for the title of the link (max. 63 characters) and paste the URL.
- You can share your SLO by geting a deep link in your browser’s address bar. Just copy and share it with your teammates!
Check out the configuration video:
For this example configuration video, we will query Prometheus for a latency metric by adding the following query in the Threshold Metric box:
In this example, we’ll set the target at 99%. This means 99% of occurrences for latency will be with the tolerance defined below. We set the desired value to less than 2000.
This means that for 99% of the events in the time window, we would expect the latency to be under 2 seconds to meet our objective. Any event with a latency over 2 seconds causes error budget to burn. If more than 1% of the events during the time period have a latency over 2 seconds, we will run out of error budget.
- It takes a few minutes for the data to be populated. Remember: if you selected a longer time window, it may take longer for the chart to appear as the data is downsampled into larger slices for the chart view.
Check out also the video on adding Prometheus data source using the Agent connection method in Nobl9 UI.