# Metric for HTTP Monitor "Failed Requests"

**URL:** <https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor, synthetic-monitoring\
**Created:** [January 19, 2023, 10:03pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074 "2023-01-19T22:03:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 19, 2023, 10:03pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/1 "2023-01-19T22:03:56Z")

</div>

When navigating in the HTTP Monitor UI, one of the most useful graphs for me is the Failed Requests:

 ![AntonioSousa_0-1674165743998.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6f911980fc32fc99f9a9f001898735e5df0bfc1e.png)

It seems to me that these values are not available in Data Explorer, so I can create a dashboard tile with it. Before I post a Product Idea for this, does anyone have an idea if I might be missing something that seems should be available?

---

<div class="post-metadata">

**Author:** ![benjamin\_mullan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/benjamin_mullan/32/38132_2.png) [@benjamin\_mullan](https://community.dynatrace.com/u/benjamin_mullan)\
**Post date:** [January 19, 2023, 10:53pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/2 "2023-01-19T22:53:39Z")

</div>

[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;  
the closest metric I can find is as below

### Status code count (by request, location) [HTTP monitor]

builtin:synthetic.http.request.statusCode

builtin:synthetic.http.request.statusCode:splitBy(“Status code”,“dt.entity.http\_check\_step”):sort(value(auto,descending)):limit(20)

But its no where near as granular as what you are showing, only shows major error class i.e 2xx and doesn’t provide the error details.

![benjamin_mullan_0-1674168584577.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f6ed0dcd76b39b563893b5635be10d8fd9c8d51.png)

Could I get instructions on how you got to that page in your screen shot? I have had issues in the past where the UI has exactly what I need, data wise, but the built in metrics exposed to us do not provide them. I have had to create custom metrics to achieve dash-boarding for what the gui is showing.

---

<div class="post-metadata">

**Author:** ![nandini\_balakri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nandini_balakri/32/13262_2.png) [@nandini\_balakri](https://community.dynatrace.com/u/nandini_balakri)\
**Post date:** [January 20, 2023, 5:46am UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/3 "2023-01-20T05:46:01Z")

</div>

Please also try builtin:synthetic.http.request.resultStatus. It gives a count of requests which you can split by success or failure (result status).

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 21, 2023, 3:32pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/4 "2023-01-21T15:32:41Z")

</div>

[@nandini\_balakri](https://community.dynatrace.com/user/19886),

Yes, I use that metric, but unfortunately we cannot split failures for the type of errors.

I have put a Product Idea for this, so it can be upvoted: [https://community.dynatrace.com/t5/Dynatrace-product-ideas/Metric-for-HTTP-Monitor-quot-Failed-Requests-quot/idi-p/203085](https://community.dynatrace.com/post/203085)

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 21, 2023, 3:39pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/5 "2023-01-21T15:39:31Z")

</div>

[@benjamin\_mullan](https://community.dynatrace.com/user/36325),

Thanks for your input. I also use the metric that you refer to, but the total ammount of failures is bigger than the values given by builtin:synthetic.http.request.statusCode

This is because it doesn’t count failures that happen before an HTTP response might happen (DNS problems, connection problems, timeouts, etc.)

I have also put a Product Idea for this, so it can be upvoted: [https://community.dynatrace.com/t5/Dynatrace-product-ideas/Metric-for-HTTP-Monitor-quot-Failed-Requests-quot/idi-p/203085](https://community.dynatrace.com/post/203085)

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [January 23, 2023, 9:01am UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/6 "2023-01-23T09:01:55Z")

</div>

I usually use&nbsp;builtin:synthetic.http.execution.status:splitBy(execution\_status\_name) for that as it shows all the statuses.

 ![HannahM_0-1674464503268.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/aa61e52b7a332339497bbdacb2f8973de62a762d.png)

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [January 23, 2023, 4:54pm UTC](https://community.dynatrace.com/t/metric-for-http-monitor-failed-requests/38074/7 "2023-01-23T16:54:30Z")

</div>

[@HannahM](https://community.dynatrace.com/user/1433),

Spot on! This is one neat hidden dimension!
