# Dashboard - pie chart with HTTP status code distribution

**URL:** <https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards-classic, charts\
**Created:** [November 28, 2022, 12:11pm UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476 "2022-11-28T12:11:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![theAsker](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@theAsker](https://community.dynatrace.com/u/theAsker)\
**Post date:** [November 28, 2022, 12:11pm UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476/1 "2022-11-28T12:11:40Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [November 28, 2022, 2:23pm UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476/2 "2022-11-28T14:23:38Z")

</div>

Hi, [@theAsker](https://community.dynatrace.com/user/57386) , good day.

You can make the call to the non monitored endpoint as a key request ([Monitor key requests in Services Classic — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/services/analysis/monitor-key-requests)), then you can use the keyrequest metrics ([Built-in classic metrics — Dynatrace Docs](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. [Multidimensional analysis — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/multidimensional-analysis#calculated-service-metric)

Try and let us know.

---

<div class="post-metadata">

**Author:** ![theAsker](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@theAsker](https://community.dynatrace.com/u/theAsker)\
**Post date:** [November 29, 2022, 5:48am UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476/3 "2022-11-29T05:48:48Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [December 2, 2022, 8:09pm UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476/4 "2022-12-02T20:09:45Z")

</div>

[@theAsker](https://community.dynatrace.com/user/57386), you can use the [Multidimensional Analysis](https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/multidimensional-analysis) to achieve this:

 ![Screenshot 2022-12-02 at 17.02.17.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fc2925477a938fa9f2c25058dc26ee1461df8c7b.png)

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

Then you create a [calculated service metric](https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/multidimensional-analysis#calculated-service-metric).

 ![Screenshot 2022-12-02 at 17.02.29.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b7be52fb9ed9650d52e8d62cf2303813a91b4bc2.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](https://global.discourse-cdn.com/dynatrace/original/3X/4/c/4c312a5588a6ff86cbf022a8e26cb5f73b7c78d0.png)

---

<div class="post-metadata">

**Author:** ![NicolasT](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NicolasT](https://community.dynatrace.com/u/NicolasT)\
**Post date:** [February 17, 2023, 2:04pm UTC](https://community.dynatrace.com/t/dashboard-pie-chart-with-http-status-code-distribution/37476/5 "2023-02-17T14:04:25Z")

</div>

Why pay to create a custom metric for something that is already stored and viewable in multidimensional analysis ?

There is no logic behind it ?

Just a lack of a dimension on service/service\_method metrics !
