20 Oct 2022 03:39 AM - last edited on 23 May 2023 06:31 AM by Michal_Gebacki
We plan to create a dashboard for 4xx and 5xx alerts.
Instead of the count, we have to add metrics in which Business transactions throw 4xx and 5xx response code.
How to do that?
Solved! Go to Solution.
If by Business transactions you mean specific API endpoints you just have to go to the Service in Dynatrace and mark the endpoint (Request) as a key request. You will then have metrics that can be used in Data Explorer for that request.
Example: You have /customers-api/v1 API which has the /pay and other endpoints.
1. In Dynatrace you will see a service called /customers-api/v1.
2. Inside this service you will find all the endpoints (requests).
3. Click on the one that is interesting to you (/pay) and mark it as a key request (https://www.dynatrace.com/support/help/shortlink/key-requests#create-ui)
4. You will have now failure rate metrics (4XX and 5XX respectively for the request, instead of the whole service), so you will be able to see both the number of failures and percentage of failures in /pay endpoint instead of /customers-api average
Hope this helps!