cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create custom event for alerting based on RUM metrics

Tim_Abil
Newcomer

Our application is manually reporting user actions with custom string properties appended to each. We have also created a custom metric so that we could make multidimensional charts based on those string properties as dimensions. The multidimensional chart tool as well as USQL are both able to count those user actions and filter based on the string properties. However when we try to create a custom event for alerting based the Static threshold setting for that metric, it only shows time units (of the metric) to trigger the alert; even-though 'Count' is selected under the aggregate dropdown. I'm wondering if this is due to the type of our metric being a 'User action duration' metric. But the RumMetricDefinition object doesnt seem to have anything that could describe a user action count. Is there a way to create an alert that would trigger based on a certain count of custom user actions?

9 REPLIES 9

The_AM
Dynatrace Champion
Dynatrace Champion

Hi Tim,

Another way to accomplish this would be to mark the particular user action of interest as a key user action.

Then when you create a custom event, you may filter to this (or several) key user actions using the action name rule-based filter.

This has the static threshold set against the count of the user actions, rather than the performance metric.


Regards,

Andrew M.

Regards,
Andrew M.

Thanks for your response @Andrew M. But it seems like the Metric in your screenshot is "by browser". So I wouldn't be able to split by my custom dimensions) which are the action string properties that i define with custom Metric).

The_AM
Dynatrace Champion
Dynatrace Champion

Hi Tim A.,

I was just using a generic example. I believe for your particular case, actually the property can only be applied as a filter when you create the metric. As the property cannot be a dimension (splitting value), then it could not be used in the alerting dimensions selection.

I may be wrong and would need to understand your exact metric and use case in more detail.

Andrew M.

Regards,
Andrew M.

We are actually using those string properties as dimensions in multidimensional charts as well as USQL widgets. And when trying to create a custom event for alerting those properties do come up as dimensions. However the static threshold values can only be set as a time unit.

The_AM
Dynatrace Champion
Dynatrace Champion

Hi Tim,

I believe you will need to create the metric based on Request Count or similar metric, instead of Response Time. Then only will you get the count and/or sum aggregation that you will need. For response time metric will have the time based aggregations, like average (time), min (time), max (time), etc.

Regards,
Andrew M.

Would the rule-based filter allow me to look at string properties?

The_AM
Dynatrace Champion
Dynatrace Champion

Hi Tim A.,

If your string property is also a frontend property (not a server-side request attribute) and you also don't mind renaming the actions to contain that value, then yes it's possible using user action naming with custom placeholders.



Regards,
Andrew M.

Regards,
Andrew M.

The_AM
Dynatrace Champion
Dynatrace Champion

Hi @Tim A.,

Just to let you know that I have moved your question to the Dynatrace Open Q&A forum, as your question relates to the Dynatrace SaaS & Managed Platform.

Regards,
Andrew M.

Regards,
Andrew M.

Tim_Abil
Newcomer

Seems like reporting a Custom Error for that userAction id and then creating an ErrorCount metric with the same string properties as dimensions worked.

Featured Posts