cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dashboard - Pie chart with HTTP status code distribution

theAsker
Newcomer

Context:

There is a service that is integrated into Dynatrace and appears under the 'Service' category. That particular service is making HTTP calls to an endpoint that is not monitored by Dynatrace.

Problem:

I would like to create a dashboard containing different kinds of charts related to the service interaction with the endpoint itself. I would like to create a pie chart that contains the HTTP status codes returned by that particular endpoint during a time period (last 24 hrs).

How can I create the pie chart? I did not find a useful metric that would help me achieve this.

Thank you

3 REPLIES 3

dannemca
DynaMight Leader
DynaMight Leader

Hi, @theAsker , good day.

You can make the call to the non monitored endpoint as a key request (https://www.dynatrace.com/support/help/how-to-use-dynatrace/services/analysis/monitor-key-requests), then you can use the keyrequest metrics (https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/built-in-metrics#key-requests) to create the dashboard.

You can also work with Multidimensional Analysis, and create calculated service metric if the builtin metrics are not enough. https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/multidimensional-analysis#ca...

Try and let us know.

Site Reliability Engineer @ Kyndryl

Thank you for the answer.

When looking at the key requests metrics I can only see an aggregation of status codes (number of 4xx, number of 5xx etc), I would like to have a pie chart with the distrbituion of all status codes. Is there a way to capture the actual http status code received?

@theAsker, you can use the Multidimensional Analysis to achieve this:

Screenshot 2022-12-02 at 17.02.17.png

First you create a view using the HTTP Status as dimension.

Then you create a calculated service metric.

Screenshot 2022-12-02 at 17.02.29.png

Finally, you can use the metric to create your tile and pin to a dashboard.

Screenshot 2022-12-02 at 17.05.33.png

Site Reliability Engineer @ Kyndryl