# DB Locks, Blocking etc

**URL:** <https://community.dynatrace.com/t/db-locks-blocking-etc/16372>\
**Category:** Open Q&A\
**Tags:** databases, mysql\
**Created:** [October 14, 2018, 1:12am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372 "2018-10-14T01:12:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [October 14, 2018, 1:12am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/1 "2018-10-14T01:12:18Z")

</div>

Hello,

We have a shared MS SQL Server 2012 with over 20 databases running. We have the OneAgent running as Infrastructure monitoring mode. We get helpful information from the Host level - I would like to get much deeper understanding of the Locks page is - How would I know the locks shown represents which DB.

Thank you

MRC

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 20, 2020, 3:16pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/2 "2020-07-20T15:16:27Z")

</div>

you can do this via the Multidimensional Analysis chart - let me know if you need any assistance setting this up:

 ![25809-1595258146735.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/4/54588e68568f936b7f93a50dd7333ce83d22712f.png)

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [July 20, 2020, 3:52pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/3 "2020-07-20T15:52:51Z")

</div>

@Chad T. Thank you for looking into my post and responding. I would love to see if you can provide more details. Thank you once again!

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 20, 2020, 3:57pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/4 "2020-07-20T15:57:34Z")

</div>

so you might need to go full stack for full monitoring, but go to Diagnostic tools, and select “Create Analysis View”

 ![25822-1595260506059.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/8/38060df5aea6e3eeb70145ca0a9f83097d334a7d.png)

From there select the metric you are interested in, the aggregation and the dimension if need and you can also filter the results if you are not using management zones.

 ![25797-1595260628874.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/05a0f11e691aa8cace5154ccd067155f4e2ba3dc.png)

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [July 22, 2020, 1:51pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/5 "2020-07-22T13:51:30Z")

</div>

Thank you for sharing the details. We would like to be on the Infrastructure as these servers could exceed 64GB RAM which doesn’t meet the ROI for the licenses. We are looking at building a custom plugin that will pull the details. Thank you for your help though

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 22, 2020, 3:49pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/6 "2020-07-22T15:49:46Z")

</div>

understandable - you might still be able to do this at an infrastructure only level but im not 100% sure. WE all have been there trying to get the host out of our host units

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [July 27, 2020, 11:58am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/7 "2020-07-27T11:58:52Z")

</div>

Are you aware of the 1 Host Unit cap on Infrastructure only agents? You should verify with your sales contact to see if this can help.

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [July 27, 2020, 2:22pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/8 "2020-07-27T14:22:50Z")

</div>

Thank you - yes we are aware of 1 host unit cap on the Infrastructure mode regardless of the amount of memory allocated.

---

<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:** [July 27, 2020, 5:07pm UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/9 "2020-07-27T17:07:25Z")

</div>

When you are talking about SQL Server DB locks, I believe you are talking about this screen:

 ![25872-1595869503360.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bf1689064e70c286ddc61f247861cfec589d7bed.png)

The locks in this screen are not related to the locks that are available in Dynatrace, namely through Method Hotspots. It would be great though to have more details in which DB invocations are involved in these locks.

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [July 28, 2020, 1:30am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/10 "2020-07-28T01:30:53Z")

</div>

[@Antonio S.](https://answers.dynatrace.com/users/9493/view.html) Yes I am referring to this page. We have multiple COTS products where we can’t instrument via OneAgent. We need to monitor the DB systems and we need different monitoring software.

---

<div class="post-metadata">

**Author:** ![Prithvi\_Mandal](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@Prithvi\_Mandal](https://community.dynatrace.com/u/Prithvi_Mandal)\
**Post date:** [October 8, 2024, 7:18am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/11 "2024-10-08T07:18:24Z")

</div>

Hii ChadTurner,

I want blocked query metrics for database , can you please tell me the path to get blocked queries .

Regards,

Prithvi

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [October 21, 2024, 6:13am UTC](https://community.dynatrace.com/t/db-locks-blocking-etc/16372/12 "2024-10-21T06:13:56Z")

</div>

You may wish to look into the [sqlserverreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/sqlserverreceiver/documentation.md) of the OpenTelemetry collector.
