# Dimensions filtration - Custom event for alerting

**URL:** <https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163>\
**Category:** Alerting\
**Tags:** problems-classic\
**Created:** [May 17, 2022, 6:29am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163 "2022-05-17T06:29:30Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [May 17, 2022, 6:29am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/1 "2022-05-17T06:29:30Z")

</div>

Dear All,

Which one of the below configurations will work to cover all queues with the prefix RICH? OR

Will this totally not work?

![Babar_Qayyum_0-1652768768059.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e7bbdfce2a136ef429b783737702bdf5e001eca2.png)

![Babar_Qayyum_1-1652768788566.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/195250127e8729f178995f0b271be0242c7e8ae6.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![AgniLanka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AgniLanka](https://community.dynatrace.com/u/AgniLanka)\
**Post date:** [May 17, 2022, 7:40am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/2 "2022-05-17T07:40:18Z")

</div>

Try “Advanced entity settings” for REGEX.

 ![11.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/8/6/86a7a1285b29febd3bf87eecd0bc3fe2376f1c44.png)

---

<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:** [May 17, 2022, 7:56am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/3 "2022-05-17T07:56:05Z")

</div>

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

Thank you for your comments. We are mainly interested in the queue depth. Will this configuration work?

Our objective is to alert when a certain number increases in the Queue Depth for a certain time and for a certain group of the Queues.

Regards,

Babaar

---

<div class="post-metadata">

**Author:** ![AgniLanka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AgniLanka](https://community.dynatrace.com/u/AgniLanka)\
**Post date:** [May 17, 2022, 8:31am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/4 "2022-05-17T08:31:21Z")

</div>

Yes. It should work.

what’s your metric ?

---

<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:** [May 17, 2022, 8:39am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/5 "2022-05-17T08:39:38Z")

</div>

Queue depth.

---

<div class="post-metadata">

**Author:** ![AgniLanka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AgniLanka](https://community.dynatrace.com/u/AgniLanka)\
**Post date:** [May 17, 2022, 9:06am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/6 "2022-05-17T09:06:15Z")

</div>

I’m unable to follow. As far as I know, there is no queue depth metric, as in, ‘Queue Depth’.

Sample metric is : builtin:tech.kafka.kafka.network.RequestChannel.RequestQueueSize.Value

Can you take a screenshot and show me the queuedepth metric you are referring to?

 ![AgniLanka_0-1652778220818.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/e/be21aa9c9b26d13b735e0955621eab9998e640f9.png)

Another Sample, for you, if I go ahead with the below Configuration, the Custom\_Alert will be a catch\_all for “Queue Depth”&nbsp; across&nbsp; all services/queues/dimensions with by the names like “CLOUD\_”

 ![AgniLanka_1-1652778871383.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/e/9e8f8ad3695dcaa83219a7c68474f10425ba5240.png)

---

<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:** [May 17, 2022, 9:14am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/7 "2022-05-17T09:14:30Z")

</div>

It seems I was not clear in my message that I am referring to the IBM MQ monitoring through the extension.

 ![Babar_Qayyum_0-1652778787901.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/abb288b69ee7b30628ebaabb00dcccc23490cbb0.png)

---

<div class="post-metadata">

**Author:** ![AgniLanka](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AgniLanka](https://community.dynatrace.com/u/AgniLanka)\
**Post date:** [May 17, 2022, 9:19am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/8 "2022-05-17T09:19:31Z")

</div>

Sure. Go ahead and create a “rule based filter” and chose the “Name” as the Entity and look for ‘case (insensitive)’ and value be your ‘filter string’ expression “RICH\_”.

See the sample below:

 ![AgniLanka_1-1652778871383.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/e/9e8f8ad3695dcaa83219a7c68474f10425ba5240.png)

---

<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:** [May 17, 2022, 10:02am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/9 "2022-05-17T10:02:44Z")

</div>

This configuration will take up to the queue manager level but not to the individual queue levels.

e.g. a queue manager can have several types of queues but we are interested to alert on a few of them when the queue depth will reach a certain limit.

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 10:16am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/10 "2022-05-17T10:16:40Z")

</div>

Hi&nbsp;[@Babar\_Qayyum](https://community.dynatrace.com/user/22017),

you are almost there, the specific metric you want is indeed&nbsp;ext:tech.IBMMQ\_Java.Queue.Depth

 ![mark_bley_0-1652782276204.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/7/67cbaa634cf4dc41155065f052b543721fd1a4f4.png)

That metric will have the different queues as dimensions, which you can select on which one to alert on a desired depth.

This is a metrics based off the queues, you can identify this in the metric key, from left to right like a drop down&nbsp;ext:tech.IBMMQ\_Java. **Queue**.Depth

You can identify on which entity the metric is based (dimension) by looking at the highlighted&nbsp;section below

 ![mark_bley_1-1652782546846.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/5093272fe012d7078f420345b4f1ad84ba36459d.png)

Best,

Mark

---

<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:** [May 17, 2022, 10:24am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/11 "2022-05-17T10:24:46Z")

</div>

Hello&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)

Thank you for your comments. The discussion started from the same point. We can definitely use the dimension filter but in this way, you will have to create too many rules. Our objective is to achieve through one rule.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 10:41am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/12 "2022-05-17T10:41:28Z")

</div>

You can add the desired queues to a specific management zone

 ![mark_bley_0-1652783329207.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5a33f097f088e79a01b6334af0abda7cb379e109.png)

Or tag all important queues

 ![mark_bley_1-1652783431294.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/393bccf16f5c407894b774189d9f4d49789b4286.png)

You can tag (or by this means also use the following rule in a management zone) e.g. using properties/tags of the underlying process groups of the queues with following selector

```auto
type(QUEUE),toRelationships.isInstanceOf(type(QUEUE_INSTANCE),fromRelationships.runsOn(type(PROCESS_GROUP_INSTANCE),fromRelationships.isInstanceOf(type(PROCESS_GROUP),tag("some_key:some_value"))))

```

---

<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:** [May 17, 2022, 10:56am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/13 "2022-05-17T10:56:50Z")

</div>

Exactly. I am looking for the same. How to tag individual queues?

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 11:06am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/14 "2022-05-17T11:06:55Z")

</div>

Using the Entity Selector you can tag individual or multiple queues at the same time, will depend on the selector

 ![mark_bley_0-1652785526734.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/6/065f2115fdc4fa044adddf174f6f04b6ec42d5bc.png)

For now the value given in the selector is a static value, i.e. you will need to manually define this for each individual rule in the auto-tag.

---

<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:** [May 17, 2022, 11:59am UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/15 "2022-05-17T11:59:40Z")

</div>

Hello [@mark\_bley](https://community.dynatrace.com/user/13072)

How did you get the above entity? I hope that I already mentioned that we are collecting this data using the IBM MQ extension. In my case, I am

 ![Babar_Qayyum_0-1652788664865.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/5/a5f6909d6013df7e1c90adc5f5a7cb51e67600f1.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 12:08pm UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/16 "2022-05-17T12:08:11Z")

</div>

You will need an [entity selector,](https://www.dynatrace.com/support/help/shortlink/api-entities-v2-selector) what you pasted in the box is a metric query.

I think a selector like this one could work for you:

```markup
type(QUEUE),entityName("RICH_BMC_Notification_Req")

```

---

<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:** [May 17, 2022, 12:13pm UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/17 "2022-05-17T12:13:13Z")

</div>

Hello&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)

Great! It worked for me now. Can I add multiple entities in the same rule?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 12:17pm UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/18 "2022-05-17T12:17:36Z")

</div>

yes you can with e.g. following selector

```markup
type(QUEUE),entityName.in("RICH_BMC_Notification_Req", "some_other_queue_name")

```

---

<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:** [May 17, 2022, 12:29pm UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/19 "2022-05-17T12:29:15Z")

</div>

Hello&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)

No matching entity with this configuration.

 ![Babar_Qayyum_0-1652790437084.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/a/2a728d71c90144155bffae5e83781aabc86fe13d.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [May 17, 2022, 12:38pm UTC](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163/20 "2022-05-17T12:38:04Z")

</div>

The names need match exactly what is shown as the display name for each queue.

If it worked before for one it should still be showing at least that one in the preview, make sure you are copying exactly the display name.

[Next page](https://community.dynatrace.com/t/dimensions-filtration-custom-event-for-alerting/35163.md?page=2)
