I am a DynaTrace 5.6 user.
I want to query the error dashlet to find out how many time a particular database exception has occurred since the start of the year. Can anyone tell me how to do this? I am SQL literate, but not sure how to construct an ad-hoc query in DynaTrace.
Jim
Answer by Andreas G. ·
Hi Jim
This is something you wouldnt query by looking at the Error Dashlet but you would do this with an Exception -> Count Measure. This will be a measure that counts how often a certain exception is thrown. The benefit of the measure is that it will be stored in the Performance Warehouse which you can then chart for a very long time period. The Errors Dashlet shows data by looking at the PurePaths that you have in your storage. It is very likely that we do not keep PurePaths for a whole year.
Having said that - here are the steps
#1: Find a PurePath that contains your Exception
#2: Via the Context Menu on that Exception in the PurePath Tree select "Create Measure"
#3: The Create Measure Dialog will come up pre-filling the necessary fields. You want to give the measure a proper name before clicking OK
#4: Now create a new dashboard and add a Chart. On that Chart you can add your measure. You can set the timeframe of this chart to e.g: 365 days
This approach will start working once you have created the measure - meaning - that the measure will be calculated for new incoming PurePaths. If you want to look at historical data before you created the measure then you can have a look at the Database Exception Measure. This is an out-of-the-box Measure that counts the number of Exceptions happening within your DB Access Layer (JDBC, ADO.NET). It is not counting a particular DB Exception but at least allows you to see historical data.
I would still go with my described approach which will give you the data you need from new incoming PurePaths
Hope this helps
JANUARY 15, 3:00 PM GMT / 10:00 AM ET