# Response time degradation - Tweak/Truncate URL

**URL:** <https://community.dynatrace.com/t/response-time-degradation-tweak-truncate-url/38555>\
**Category:** Open Q&A\
**Tags:** problem-notification, problems-classic, dynatrace-api\
**Created:** [February 23, 2023, 7:09am UTC](https://community.dynatrace.com/t/response-time-degradation-tweak-truncate-url/38555 "2023-02-23T07:09:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashiD](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ashid/32/15650_2.png) [@ashiD](https://community.dynatrace.com/u/ashiD)\
**Post date:** [February 23, 2023, 7:09am UTC](https://community.dynatrace.com/t/response-time-degradation-tweak-truncate-url/38555/1 "2023-02-23T07:09:07Z")

</div>

Hello Everyone. I am trying to tweak a few alerts on my side.&nbsp;  
I usually get alerts on problems for Response time Degradation or high failure rate.

For example  
/api/v1/ABC/MAC1 - Failed&nbsp;  
/api/v1/ABC/MAC2 - Success&nbsp;  
/api/v1/ABC/MAC3&nbsp;&nbsp;- Success&nbsp;  
/api/v1/ABC/MAC4&nbsp;&nbsp;- Success

This would trigger an alert if MAC1 failed.

Is it possible to tweak the alert to Monitor&nbsp;/api/v1/ABC/&nbsp;&nbsp;so i get an alert if 100% transactions failed and not just one MAC.

---

<div class="post-metadata">

**Author:** ![Selvam\_Sekar](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Selvam\_Sekar](https://community.dynatrace.com/u/Selvam_Sekar)\
**Post date:** [February 23, 2023, 9:55am UTC](https://community.dynatrace.com/t/response-time-degradation-tweak-truncate-url/38555/2 "2023-02-23T09:55:01Z")

</div>

Hi,

You will have to create custom calculated metrics under server-side monitoring tab in settings page. And, in the condition you can provide the same.

Doc:&nbsp;[Calculated metrics for services | Dynatrace Docs](https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/service-monitoring-settings/calculated-service-metric)

 ![Selvam_Sekar_0-1677146015269.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/383bd8741e7d771983baf55fc7c7f96393514b6b.png)

---

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [February 25, 2023, 9:33am UTC](https://community.dynatrace.com/t/response-time-degradation-tweak-truncate-url/38555/3 "2023-02-25T09:33:45Z")

</div>

Hi,

Are the calls running in the same service? You can then also try merging the requests by designing a request naming rule that takes out the last /MAC\* part in the URL. This will merge the requests. Making it a key requests allows you to create your own anomaly detection on the new requests, therefore the possibility to keep track of a seperate baseline.

This ensure you’ll get an alert of a failure rate increase of all the requests. If the last part is important you’ll need to put the /MAC1-4 in a request attribute so performance per requests is still visible using request filters.

KR,  
Michiel
