# Configure SLO on specific key request, instead of that service as-a-whole

**URL:** <https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712>\
**Category:** Automations\
**Tags:** slo\
**Created:** [March 7, 2021, 1:59pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712 "2021-03-07T13:59:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [March 7, 2021, 1:59pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/1 "2021-03-07T13:59:08Z")

</div>

Anyway I can configure SLO on specific key request, instead of that service as-a-whole?

Best Regards,

Wai Keat

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 7, 2021, 2:14pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/2 "2021-03-07T14:14:44Z")

</div>

Hi&nbsp;[@waikeat\_chan](https://community.dynatrace.com/user/36245)

You can add filter to the metric to&nbsp;to pick the key request you are looking for.

 ![Yosi_Neuman_0-1615126055776.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/c/9c2071f992f76ec649e8e1389236297c1a97ef15.png)

The filter will look something like:

builtin:apps.other.keyUserActions.count.osAndApdex:filter(eq(dt.entity.device\_application\_method,“DEVICE\_APPLICATION\_METHOD-B60A00B9A3831556”)):splitBy(dt.entity.device\_application\_method):sum:auto

More information about filter transformation can be found in [documentation](https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-selector#filter-transformation-)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [March 7, 2021, 11:22pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/3 "2021-03-07T23:22:29Z")

</div>

Hi Wai Keat,

Yes, this is possible. It doesn’t even need to be a request marked as key request. It just needs to be a metric.  
For this you can create a calculated service metric (from the service, click on the chart option for the request, then ‘create metric’ from the multi-dimensional analysis view).

There’s actually a walkthrough that makes this use case as an example in the “Getting Started with SLOs in Dynatrace” performance clinic webinar. You may watch this explanation either within [Dynatrace University](https://university.dynatrace.com/ondemand/course/21409/video/25953) or on [Youtube](https://www.youtube.com/results?search_query=getting+started+with+slos).

Starts from 26min&nbsp;mark if you’re in a hurry

Hope that helps.

Andrew

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 12, 2021, 8:30am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/4 "2021-03-12T08:30:35Z")

</div>

The only concern with creating metrics is that customers do care about their DDU’s license that creation of metrics do consume, while creating key user action and using built in metric is free of DDU charge.

Yos

---

<div class="post-metadata">

**Author:** ![nick\_hurt](https://avatars.discourse-cdn.com/v4/letter/n/82dd89/32.png) [@nick\_hurt](https://community.dynatrace.com/u/nick_hurt)\
**Post date:** [March 12, 2021, 3:48pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/5 "2021-03-12T15:48:41Z")

</div>

To add further to this,

Calculated service metrics can be created using conditionals on request name or request type (among others). A calculated service metric can then be used as a single metric or included as the numerator/denominator for SLO creation.

---

<div class="post-metadata">

**Author:** ![james\_moriarty](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@james\_moriarty](https://community.dynatrace.com/u/james_moriarty)\
**Post date:** [April 7, 2021, 12:15am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/6 "2021-04-07T00:15:38Z")

</div>

This needs to be better documented as is standard SLO/SLI practice. We’ve managed to get it working but found it was incompatible with the “SLO filter” when using calc service metrics. We also couldn’t filter by status code without a calc service metric:

e.g. Latency SLI

\<custom success metrics/filter service, endpoint, availability, and latency\>  
/  
builtin:service.keyRequest.count.server:filter(eq(“dt.entity.service\_method”,“SERVICE\_METHOD-XXX”))

\*\*EDIT\*\*

e.g. Availability SLI

builtin:service.keyRequest.errors.server.successCount  
/  
builtin:service.keyRequest.count.server

SLO filter:&nbsp;type(“SERVICE\_METHOD”) AND entityId(“SERVICE\_METHOD-XXX”)

cc/&nbsp;[@wolfgang\_heider](https://community.dynatrace.com/user/26788)

---

<div class="post-metadata">

**Author:** ![wolfgang\_heider](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_heider/32/12831_2.png) [@wolfgang\_heider](https://community.dynatrace.com/u/wolfgang_heider)\
**Post date:** [April 7, 2021, 7:04am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/7 "2021-04-07T07:04:53Z")

</div>

Thanks a lot for the feedback!  
I already triggered to improve docs with your help/feedback/examples  
and we think about how to make the filtering more self-explanatory.  
The SLO filter would apply for both metrics and for the custom calc metric, there is only the dimension of the service.  
This will change with a new query syntax for metrics (coming along with calculated metrics), which will also be part of the SLO setup then. There it becomes more clear, what is possible (to filter) on the individual metric queries and makes the overall setup easier.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [September 16, 2021, 12:24pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/8 "2021-09-16T12:24:43Z")

</div>

Hi&nbsp;[@The\_AM](https://community.dynatrace.com/user/21137)&nbsp;  
The new features is not the same as the one used in the University, we lost a lot of parameters…

Can we have details about how we can create the same SLOs shown in the videos with the actual features?

Thanks

---

<div class="post-metadata">

**Author:** ![Kenny](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny/32/6395_2.png) [@Kenny](https://community.dynatrace.com/u/Kenny)\
**Post date:** [October 26, 2021, 2:44pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/9 "2021-10-26T14:44:09Z")

</div>

Hi, how can I build SLO Latency using built in metric? , we have already achieved the availability, but we can’t find the way to count the requests that a method responds in less than 5s.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [October 26, 2021, 10:58pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/10 "2021-10-26T22:58:06Z")

</div>

If the video seems not quite up-to-date with current, I would suggest to review the documentation here: [Service-Level Objectives Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/objectives-hub)

It’s often quicker for the Dynatrace docs team to update the online documentation, since review and re-recording of training videos takes longer and the SLO feature is still evolving and improving over time.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [October 26, 2021, 11:03pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/11 "2021-10-26T23:03:04Z")

</div>

You will be looking for the metric(s) for **Response Time.** Please see the glossary on the definition here: [Dynatrace glossary — Dynatrace Docs](https://www.dynatrace.com/support/help/get-started/glossary/#expand-response-time-72)

Note that, usually in Dynatrace, when we use the term ‘latency’ we are specifically relating to a certain **component** of response time, **such as network latency**. Whereas overall service transaction time is response time.

---

<div class="post-metadata">

**Author:** ![Kenny](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny/32/6395_2.png) [@Kenny](https://community.dynatrace.com/u/Kenny)\
**Post date:** [October 27, 2021, 2:30pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/12 "2021-10-27T14:30:27Z")

</div>

Hi Wolfang.

I’m with the same problem, with calculated metrics I could build latency SLO, but this generates licensing costs but with the builtin metrics I have not been able to do it, only for the availability SLOs by services and KeyRequest

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [October 31, 2021, 10:23am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/13 "2021-10-31T10:23:03Z")

</div>

Hello All,

Im searching for the same.

Building the SLO for Availability, Response time… for a specific Request without making KeyRequest and Without creating a calculated Metric.

Is it possible?

Thanks and good day.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 2, 2021, 7:46am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/14 "2021-11-02T07:46:16Z")

</div>

HIi [@Malaik](https://community.dynatrace.com/user/23195)&nbsp;,

this is not possible. At least in current Dynatrace versions. SLOs work on metrics only. You won’t have the metric (Response time for example) for a single request unless you mark it as a key request or you create the calculated service metric.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [December 20, 2021, 12:24am UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/15 "2021-12-20T00:24:21Z")

</div>

Also, this should now be easier to implement as code, since there is now a key requests REST API for web and mobile apps.

For example: [Web application configuration API - GET key user actions — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/rum/web-application-configuration-api/key-user-actions/get-configuration)

---

<div class="post-metadata">

**Author:** ![Kenny](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny/32/6395_2.png) [@Kenny](https://community.dynatrace.com/u/Kenny)\
**Post date:** [December 22, 2021, 2:48pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/16 "2021-12-22T14:48:12Z")

</div>

Hi, Wolfang.

I’m having problem with metrics for SLO calculation based on keyRequest usingentityId(“SERVICE\_METHOD-XXX”) change over time which causes the SLO to break, if I do it using entitySelector("type(service),entityName(~“createEvent~”) in the filter the problem of duplicate names is presented, and when trying to add in the entitySelector for example the controller does not bring data. This generates that when the METHOD\_ID changes it is necessary to adjust the dashboard again and in some cases it does not work with that either.

I would appreciate if someone has had this problem and has managed to mitigate it somehow.

Thanks.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 22, 2021, 3:47pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/17 "2021-12-22T15:47:55Z")

</div>

Hi&nbsp;[@Kenny](https://community.dynatrace.com/user/44330)&nbsp;,

if there is a change in the entityId identifier for a key request, then it is in fact a new key request. Unless there is an architectural change (host group has changed) or deployment change in the application, the entityId will not change.

Technically you should be able to enter entityselector using entityName and leveraging the relationships.&nbsp; For example:

```markup
type(service_method),entityName("/my/request/name"),fromRelationships.isServiceMethodOfService(entityId(SERVICE-5D1E8D73D43E6F7D))

```

This will return key requests which contain “/my/request/name” in the name and are on the service with the ID specified.

Anyway - I recommend finding out why your SERVICE\_METHOD ID had changed.&nbsp; It should not.

Julius

---

<div class="post-metadata">

**Author:** ![Kenny](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny/32/6395_2.png) [@Kenny](https://community.dynatrace.com/u/Kenny)\
**Post date:** [December 22, 2021, 4:13pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/18 "2021-12-22T16:13:15Z")

</div>

Thanks [@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;.

It works for me for example for availability SLO as follows:

```markup
(100)*((builtin:service.keyRequest.errors.fivexx.successCount:filter(eq(eq(dt.entity.service_method, "SERVICE_METHOD-XXX")):splitBy())/
(builtin:service.keyRequest.count.server:filter(eq(dt.entity.service_method, "SERVICE_METHOD-XXX")):splitBy()))))

```

We are analyzing why we lose in some cases the SERVICE\_METHOD\_ID since they are not all, for the case of availability we only change the metric of good event by a calculated one and it also makes it perfect, we only have to determine the origin of the loss of KeyRequest

 ![Screen Shot 2021-12-22 at 13.12.21.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/5/e59093152d271a9615e306011cd0e82ac960fe6c.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 22, 2021, 10:47pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/19 "2021-12-22T22:47:37Z")

</div>

[@Kenny](https://community.dynatrace.com/user/44330)&nbsp;hard to tell - most likely there has been a change in deployment and Dynatrace considers even the service as a different one. I’d suggest to choose a long timeframe in the global time selector so it spans the time when the “old” keyrequest was present as well as the new one. Look at the process group. I’d bet you will see two services with the same name.

---

<div class="post-metadata">

**Author:** ![Kenny](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny/32/6395_2.png) [@Kenny](https://community.dynatrace.com/u/Kenny)\
**Post date:** [December 23, 2021, 6:32pm UTC](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712/20 "2021-12-23T18:32:57Z")

</div>

Hi Julius.

Totally correct your observation, we will be following up on what produces the splitting of the microservice information.

Thank you very much for your support.

Kenny.

[Next page](https://community.dynatrace.com/t/configure-slo-on-specific-key-request-instead-of-that-service-as-a-whole/30712.md?page=2)
