question

dynatrace A. avatar image
dynatrace A. asked ·

Create problem alert from Errors or Exception message

Hello everyone,



The customer need to Dynatrace alert problem notification to their team if Dynatrace facing Exception message like on picture above (yellow highlight). Dynatrace can do it ?


Thank in advance,

alertingjavajavascriptdocumentationnotifications
tli-errormsg.jpg (121.6 KiB)
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.

Sebastian K. avatar image
Sebastian K. answered ·

I think there is no direct way to do this. Dynatrace is alerting on failures rate itself not about particular exception. There is no option in custom alert for this as well (at least I didn’t found it). But if this is exception it should be visible in process logs as well, am I right? If yes and you have log analytics license that is covering size of this log, you can alway create log based event:

https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/log-analysis/analyze-log-data-and-create-events/

In such case problem will be fired based on this.

Sebastian

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.

Wolfgang B. avatar image
Wolfgang B. answered ·

The upcoming improvement of the custom events and alert configuration will allow you to define an alert on a custom service metric. A custom service metric could be defined to catch your specific error code and count those occurrence. The alert would then be sent out if the occurrence count is above your selected threshold.

As I mentioned this is an upcoming feature that you can request as a preview in Dynatrace release 176.

Best greetings,

Wolfgang

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.

Would it cover metrics made based on exception? Because as I understand here, response code is not issue (can be caused by multiple other exceptions).


Sebastian

0 Likes 0 · ·
Larry R. avatar image
Larry R. answered ·

Hhhhhhmmmm..... I was just poking around trying to figure this one out myself. You are correct I believe. Event today on the latest release, I do not see anything dealing with exceptions in the "Custom event for alerting" under services. I have a team would had some exceptions under a service and would like to raise a problem when they are detected.

I was looking at "Error detection" and "Custom errors" under the service, but I am not confident that anything in there would trigger a problem based on an exception.

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.