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

SLO definition for the count of KeyUser actions speed

r_weber
DynaMight Champion
DynaMight Champion

Similar to the SLO approach of service-side key requests, where one can create a metric to count the NUMBER of requests that are below/above a certain duration, I wanted to also follow the same approach for client-side key user actions.
Although you can do this kind of "action duration" filter in the user action analysis screen you cannot create a metric off it like for service key requests:

r_weber_0-1656062725122.png

 

Another approach would be to create an Application Metric that would count the number of requests of a specific user action, however this is also not possible, only time based metrics (no counting) for user actions are available:

r_weber_1-1656062939518.png

 

This concludes that one cannot create an SLO specific for a key user action count, but would need to revert to a APDEX only "bucketing" of user actions (using the apdex thresholds and then use the apdex category in the SLO query/metrixcs).

Is that assumption correct or has someone come up with another idea?

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net
3 REPLIES 3

r_weber
DynaMight Champion
DynaMight Champion

Oh my! I found an inconsistency in how Dynatrace handles created custom metrics depending on where you create them.

This is important to know for those who might want to tackle something similar!

When you create a service-based metric (such as key requests or from the multi-dimensional analysis screen), you must select the type of aggregation (e.g. count). This will create ONLY a count metric with no other aggregations, like this one (notice the Aggregations: auto, value😞

r_weber_0-1656073964180.png

However if you create a APPLICATION-based metric (such as key user actions from the user action analysis screen or the application configuration), you must select the type of metric (e.g. user action duration, visually complete,...). Then dynatrace will create the different aggregations (also the count aggregation) for you, like this one (notice the Aggregations: auto, avg, count, max, min, sum):

r_weber_1-1656074093700.png

 

This is inconsistent and very counter-intuitive. I'd expect this to be done in the same way!
With that said, you can create the SLO definition based on the count of fast/slow/total key user actions, but have to specify the aggregation in the metric query like this (notice the extra count() aggregation:

 

100*(calc:apps.web.az_at_appdev_adsr_internal_viewer.fastloadingofadsr_viewerdocumentpage:count()/calc:apps.web.az_at_appdev_adsr_internal_viewer.loadingofadsr_viewerdocumentpage:count())

 

 

 

Certified Dynatrace Master, Dynatrace Partner - 360Performance.net

Yes.. I ran into the very same situation a year ago. Also defining a custom metric for each key user action is ... not very convenient. It's easier to use USQL, if it fits your use case and you accept the USQL limitations.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

SeemaP
Frequent Guest

Hi @r_weber , when I am trying to create application metric from application settings. I have selectin Action duration and filtered data for page name. I am getting aggregation as "auto, value". Could you please guide how to get "count" aggregation.

Thanks,

Seema

Featured Posts