# Number of messages written when QUEUE service is not monitored

**URL:** <https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, queues\
**Created:** [July 13, 2021, 1:31pm UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095 "2021-07-13T13:31:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![monitoringteam1](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@monitoringteam1](https://community.dynatrace.com/u/monitoringteam1)\
**Post date:** [July 13, 2021, 1:31pm UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095/1 "2021-07-13T13:31:36Z")

</div>

Hello,

we would like to create a custom metrics showing the number of messages written into a specific queue:

 ![monitoringteam1_0-1626182856285.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/3/1335324786881e7e0051ee531a1df0e61eb3c80a.png)

Like in the screenshot attached, the number we are interested in is “738”, not the number of purepath on the caller.

Queue listener is not monitored with oneagent so the only info we have is caller side. Is there a way to extract that number as metric???

Thank you,

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 16, 2021, 9:12pm UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095/2 "2021-07-16T21:12:03Z")

</div>

At the moment - only way I can think of is to define a custom service in the code where the message gets pushed into the queue and then use the metric.

Queues are still considered second class citizens within Dynatrace and you don’t have any metrics for them.

In MDA you can count the number of requests writing to the queue, but this is not the same as number of messages written into the queue.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [July 17, 2021, 7:59am UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095/3 "2021-07-17T07:59:51Z")

</div>

Hello&nbsp;[@monitoringteam1](https://community.dynatrace.com/user/27707)

I am not 100% sure but might be the&nbsp; **Enqueue/Dequeue Rate** &nbsp;can be used to obtain the required information. If we use the IBM MQ monitoring extension.

> **[Extensions](https://docs.dynatrace.com/docs/ingest-from/extensions)**
>
> Learn how Dynatrace Extensions work, where they run, and how to create, deploy, and manage extensions to collect data from custom sources.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 17, 2021, 8:36am UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095/4 "2021-07-17T08:36:25Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;with the extension you will have the metric, but it’s only about the queue. You cannot distinguish between sources of the messages that go into the queue.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [July 17, 2021, 8:39am UTC](https://community.dynatrace.com/t/number-of-messages-written-when-queue-service-is-not-monitored/32095/5 "2021-07-17T08:39:44Z")

</div>

Hello&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

Thank you for the information.

Regards,

Babar
