question

Prathamesh J. avatar image
Prathamesh J. asked ·

Email alert with user name

I want to configure email alerts which contain user name in it.How can I achieve it.And also I want alert or something which raised for every single frustrated visit.

production
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Keerti S. avatar image
Keerti S. answered ·

Hi @Andreas Grabner: In our case, we have a lot of users and most of our visits are satisfied visits as seen in the below screenshot (data of past 24 hours).

Though the visits are categorized as satisfied visits, some of them have a few frustrated user actions which take a very long time (~3 mins) and we are receiving complaints from the users regarding the slowness. I would like to get alerts in such cases with the frustrated username in my email. What can I do? Below is a screenshot of one such visit:

Thanks,

Keerti


capture1.png (13.8 KiB)
capture.png (95.7 KiB)
capture.png (96.0 KiB)
Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Matthews N. avatar image
Matthews N. answered ·

 

From Prathameshi Joshi,

I just want to confirm whether it is possible to get email alert for frustrated user in real time. I tried it by creating business transaction which filters the visit by frustrated user experience and splitted it by application and measure which is giving user name but it is giving alerts approximately after 30 min. of end of visit. So is there any other way to get real time alert for frustrated user.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

There is no other way in the moment. The reason why you see the 30 mins delay is because this is the default timeout of a UEM Visit. In order for dynaTrace to know whether a Visit is complete it needs to make sure that there is no additonal data coming in. Thats why we have the Visit Timeout setting which is typically the same timeout as you have on your AppSErver for your User Sessions.

The question that I have to you know is: "What is a frustrated user for you?". If you want to have immediate notification than you may need to do this on failed User Actions instead of the overall calculated User Experience for a Visit. In this case you could either work with Error Rules that detect certain errors (HTTP 500, ...) and then raise an incident for these - or - create a User-Action based Business Transaction instead of the Visit-based BT that I proposed earlier in this posting

Andi

0 Likes 0 · ·
Prathamesh J. avatar image
Prathamesh J. answered ·

Andreas I have tested that measure for getting user name and I changed the aggregation for count to last but I am still not able to get any data.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Are you sure the username measure works? can you create a separate Business Transaction that splits by username only simply to test if this works?

0 Likes 0 · ·
Andreas G. avatar image
Andreas G. answered ·

Two things

#1: change the aggregation for the filter measure to "last" - you have it on "count"

#2: are you sure your username measure will return a value?

Andi

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Prathamesh J. avatar image
Prathamesh J. answered ·
Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Prathamesh J. avatar image
Prathamesh J. answered ·
Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Prathamesh J. avatar image
Prathamesh J. answered ·

Hi Andreas,

We have created BT as per your sugession but we are not able to see any data in BT even when the frustrated visits are getting captured in application.

PFA the screen shots [Broken image]

[Broken image]

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Andreas G. avatar image
Andreas G. answered ·

So - what you can do is the following:

#1: Create a new Visit based Business Transaction

#2: Define a Filter Measure of type "Visits - User Experience" to filter for the frustrated users: see image

#3: Define a Split Measure that returns your username

#4: Define an Incident on the "Count" Result of this Business Transaction and set an upper severe threshold of 1

This will now trigger an Incident for every Visit that is frustrated and because of the Split Measure the incident will include the name of the user

BE AWARE though - that - for every UNIQUE frustrated user you will have this Business Transaction will create a measure in the performance warehouse. So - if you you "just" have 5 per day you will be kind of fine. But - if you have 100s per day and that over a longer period you will end up with a lot of measures in your PerfWarehouse that you actually never use for charting anyway. So - please be careful with this - but - tell us how it works for you

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Prathamesh J. avatar image
Prathamesh J. answered ·

Hey Andreas,

PFB the Use case that we want to perform:

Email  Alerts

       Email generate for support team when user has Frustrated visit

       In the Subject of Email we want the Application Name.

       Email body contains the username that we tagged for particular visit.

 

 

 

 

2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

I understand that - but - do you have 100 users on the system where one or two are frustrated by day - or do you have thousands of users with hundreds being frustrated. that makes a difference in the way you want to handle it. receiving hundreds of emails per day would then probably not make sense

0 Likes 0 · ·

i am talking about the  first scenario that maximum 5 users are frustrated by day.

0 Likes 0 · ·
Andreas G. avatar image
Andreas G. answered ·

Hi - there is an option to implement this - but - before I tell you how this works I would like to understand how many users you have on your system and what your frustrated visit rate is. It is important because the option I have available will only work if you do not have too many different usernames that are frustrated. If you have thousands or even millions of users that might be frustrated over the course of weeks, months or years you may overload our performance warehouse.

So - let me first understand your use case a bit better and then we can figure out if the option I have in mind will work or whether we have to bring this to the engineering team to think about implementing this as an out of the box use case/feature.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.