# Custom Database query updated documentation

**URL:** <https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731>\
**Category:** Extensions\
**Tags:** databases, documentation, extensions\
**Created:** [May 12, 2023, 8:31pm UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731 "2023-05-12T20:31:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![screaminscott](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@screaminscott](https://community.dynatrace.com/u/screaminscott)\
**Post date:** [May 12, 2023, 8:31pm UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/1 "2023-05-12T20:31:25Z")

</div>

Is there any more documentation about the Custom db query extension, beyond what can be found here?

[https://www.dynatrace.com/hub/detail/custom-database-queries](https://www.dynatrace.com/hub/detail/custom-database-queries)

The information about using the Data Explorer for visualization does not appear to be accurate.

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [May 12, 2023, 10:47pm UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/2 "2023-05-12T22:47:24Z")

</div>

There is no other documentation, can you expand on what is not accurate? We can improve the Hub docs if necessary

---

<div class="post-metadata">

**Author:** ![screaminscott](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@screaminscott](https://community.dynatrace.com/u/screaminscott)\
**Post date:** [May 15, 2023, 9:24pm UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/3 "2023-05-15T21:24:21Z")

</div>

The documentation screen shot for the data explorer does not match what I see on Dynatrace.

Here is the screenshot from the documentation:

 ![Screenshot 2023-05-15 161757.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/3/36a3edbae3e9cda002b46cd216269a53c61b3012.jpeg)

Here is the data explorer screen I see:

 ![Screenshot 2023-05-15 161752.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/9/987cc48a6e42964c80c44e41d3a778111b6cb7f7.jpeg)

Additionally, when I enter “custom.db.query” for the metric, I get the error “no meteric found for custom db query”.

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [May 16, 2023, 12:40am UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/4 "2023-05-16T00:40:06Z")

</div>

Thanks, that is just a slightly older version of data explorer on the docs, but the metric key and everything else is the exact same, some buttons just moved around.

If you don’t have a metric something is not correct with the extension, I suggest opening a ticket so we can take a look at the logs.

---

<div class="post-metadata">

**Author:** ![screaminscott](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@screaminscott](https://community.dynatrace.com/u/screaminscott)\
**Post date:** [May 16, 2023, 3:12am UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/5 "2023-05-16T03:12:16Z")

</div>

Thanks for the reply.&nbsp; Regarding the error, it turns out I didn’t have a value column populated.&nbsp; Since the field was listed as optional, I thought maybe it didn’t need to be there.  
I guess my issue is that I don’t quite understand how the query results are supposed displayed in the Data Explorer.&nbsp; I suspect the queries need to be written a specific way, in order to be used by the Data Explorer.&nbsp; But there doesn’t seem to be much information about this that I can find.&nbsp; The examples in the previous link are very limited.  
I will research more.

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [May 16, 2023, 2:40pm UTC](https://community.dynatrace.com/t/custom-database-query-updated-documentation/39731/6 "2023-05-16T14:40:41Z")

</div>

The queries don’t need to be written an specific way, and you do not need a value column populated to get metrics.

Everything you need to get a query working is already documented on the “Configuration” tab of the extension, for instance:

 ![david_lopes_0-1684248029522.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b162e857904f67d67ba46bc29b8ffe4403db2b94.png)
