12 Jul 2019 08:28 AM - last edited on 09 May 2021 06:36 AM by MaciejNeumann
We have a requirement where we need to capture user actions which takes more than 10seconds in dynatrace managed.
This was quite easily achievable in dynatrace appmon by defining a threshold in measure but not sure how to get this data in dynatrace managed.
Regards,
Suraj Gupta
Solved! Go to Solution.
12 Jul 2019 09:52 AM
You can define thresholds in anomaly detection settings for application:
You can set static thresholds here and when action duration will be longer than 10s, problem will be raised in dynatrace.
It’s not possible for filtering custom chart just to display user actions longer than 10s. There is no filtering option there. But you can make it using USQL tile:
Sebastian
12 Jul 2019 11:23 AM
If you need to display/chart user actions taking longer than 10s, you can do that using USQL or using custom chart. But for custom chart you need to have those actions defined as key user action.
With USQL you will can get a "session oriented" view, with custom chart only an "application oriented" view.
12 Jul 2019 02:12 PM
I've used below query to pull >= 10 seconds user action duration. Please have a look and let me know if this would fulfill my requirement.
SELECT useraction.application, count(useraction.name) as UserActionCount FROM usersession WHERE userType = "REAL_USER" AND useraction.duration >= 10000 GROUP BY useraction.application ORDER BY useraction.application
12 Jul 2019 02:31 PM
you can add to select useraction.duration as well. The question is as well if you want to focus on all user action or for example on median values. If so, you can use MEDIAN(useraction.duration).
You can as well make this query not from application perspective but from user action perspective and list instances of user actions that has duration 10s+ (in such case use FROM useraction not usersession. This will change as well some fields you are using.
Sebastian