20 Oct 2022
11:39 AM
- last edited on
23 May 2023
02:31 PM
by
Michal_Gebacki
Hi,
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?
Regards,
A.Rajeshkumar
Solved! Go to Solution.
14 Dec 2022 04:00 PM
Hi @arajesh84,
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!
29 Jan 2025 08:42 PM
You need a create metrics, using Metric Source HTTP 4xx count