04 Dec 2024 09:02 AM
When using the metric selector in metric event creation, will alerts be generated for individual entities? I have the same queue names running on two queue managers. If I filter them without splitting by queue manager in the metric selector, will the queue depth counts add up for the queues since they have the same name on two queue managers? In Data Explorer, it shows the summed-up results when not using split by queue manager. Will the alert trigger only if the combined queue counts exceed the threshold, or will it consider them as individual queues?"
Solved! Go to Solution.
07 Dec 2024 04:08 PM
Hi @Sivp09
PFA Dynatrace resources covering the raised concern, careful review and will sort it out:
Hoping it helps.
BR,
Peter
08 Dec 2024 07:56 AM
Hi @Sivp09
It depend on the metric and the entity selector.
I'm afraid if you don't put the split and for example your are using the queue depth, this will consider the accumulation ...
You can Simulate this in the Data Explorer.
BRs,
08 Dec 2024 10:59 PM
Hey @Sivp09,
It's hard to say for certain without seeing the metric selector in question but based on what you say it sounds like no, it won't create alerts for a specific entity and will evaluate the combined queue counts.
As an example of how this works, if I created a metric event using the first selector below, Dynatrace would not associate it with an entity. This is because it is evaluating the data returned by that query which is just 1 timeseries with no dimensionality. If I created it using the second selector, the one that is split, then it will evaluate each individual timeseries that is returned.
You can also see what Dynatrace will evaluate when creating the metric event. On the metric event page in the preview section there is a dropdown. In that dropdown you will find all of the timeseries it is evaluating. As an example, in the picture below it is evaluating 3 different timeseries for 1 metric event.
Hope the above helps, if you need more help or certainty then posting the query would allow us to look at what it is doing.
11 Dec 2024 04:22 AM
Hi @Fin_Ubels
i want to have multiple queues in single metric event, since event filter only gives 'and' conditions , i would like to use metric selector. will it gives induvial alerts when depth exceeds thresholds. (screenshot attached)
and another question, instead of creating multiple metric events , is there way to create single one for multiple thresholds since all will go to single alerting profile and problem notification.
Regards,
Sivp09
11 Dec 2024 11:59 PM
Hey @Sivp09
Since you've used a :splitby in the metric selector, then an alert can be generated for each dimension specified in the split. In your case, this means that each time the threshold is breached by each queue_name it will generate an alert. If 2 queues have the same name though, they will likely be combined which presumably is not what you're after so I would recommend splitting by more than just the name.