With
Service-Level Objectives, you can configure new service-level objectives (SLOs) from templates provided by Dynatrace.
You can also define your SLOs based on a custom DQL query.
To create a new SLO with a predefined template
In Dynatrace, search for
Service-Level Objectives and open it.
Select Service-level objective.
In the SLO wizard, choose one of the following:
Select Create for one of the above options.
Choose the entities that should meet your objective. If you're using the Service performance template, enter a value in milliseconds in Requests should be faster than.
Optional Select segments , choose the required segment(s), and select Apply. This reduces the number of filter results.

This is only an additional filter for the required entities. It does not apply to the SLO evaluation. To add the segment filter to the SLO evaluation, use step 5 in the Create a custom SLO section.
Select Next.
Define the criteria of your SLO. Fill in the Target field and select the timeframe for the evaluation period by using the dropdown in the Over the evaluation period field.
Optional Turn on Show warning and enter the numeric percent in Show warning at field.
Select Next.
Enter a name for your SLO in SLO Name.
Optional Provide a meaningful description of what your SLO is about in SLO description.
Optional Provide tags for your SLO in the Tags section by filling in the Key and Value fields. Select Add to save the tags. Tags can be used to provide additional metadata for your SLOs, such as a responsible ownership team or additional information about the underlying entities or the criticality of your SLO.
Select Save.
To create a new SLO
In Dynatrace, search for
Service-Level Objectives.
In the overview of Service-Level Objectives, select Service-level objective.
Select Custom SLO. The Add service-level objective dialog opens.
In the Custom DQL field, enter a DQL query that adds the sli field.
Your query must include an sli field that returns an array of double type values to ensure consistent visualization, transformation, and aggregation across your SLOs.
You can base your DQL query on any data type in Grail, such as metrics, events, logs, or spans.
For timeseries queries, we recommend using metric-based SLOs, where metrics are pre-aggregated and optimized for this query type, resulting in faster evaluation and reduced data processing overhead.
Metrics are pre-aggregated and optimized for timeseries queries.
For event-based or log-based data, use the makeTimeseries command for deriving the sli field.
For more DQL query examples, see Service-level objective examples.
Below is a DQL query example that uses the Smartscape 2.0 dt.smartscape.service entity and filters for the sli field.
timeseries {total = sum(dt.service.request.count),failures = sum(dt.service.request.failure_count)},by: { dt.smartscape.service },filter: { in(dt.smartscape.service, { services }) }| fieldsAdd sli = (((total[] - failures[]) / total[]) * 100)
For DQL examples that use the Smartscape 2.0 dt.smartscape.service entity, see Explore the Service Entity in Smartscape on Grail.
Optional Select segments , choose the required segment(s), and select Apply. This is an additional filter to the query.
The selected segments are stored with the SLO definition. Those filters are effective with future segment modifications and new entity creations with the same DQL query.
Select Next.
Define the criteria of your SLO. Fill in the Target field and select the timeframe for the evaluation period by using the dropdown in the over the evaluation period field.
Optional Turn on Show warning and enter the percentage in Show warning at.
Select Next.
Provide the name for your SLO in the SLO Name field.
Optional Provide a meaningful description of what your SLO is about in the SLO description field.
Optional Provide tags for your SLO in the Tags section by filling in the Key and Value fields. Select Add to save the tags. You can use tags to provide additional metadata for your SLOs, such as the responsible ownership team, information about the underlying entities, or the criticality of your SLO.
Select the Save button to create your SLO.
You can create, edit, list, delete, and evaluate your SLOs via API.
API. In the search results, see Support resources section and Dynatrace API below it.
Service-Level Objectives