05 Aug 2024 06:51 PM - last edited on 19 Aug 2024 08:07 AM by Michal_Gebacki
I've created davis anomaly detector for sql extension alerts, and want to print the metric key in the alert email. My query is as below
timeseries metric= avg(`com.dynatrace.extension.sql-oracle.metrickey`), by: {`dt.entity.sql:com_dynatrace_extension_sql-oracle_instance`, instance.name }
and in the email body, I have tried few options like {metric} OR `metric`, but I am not able to get the value of metric. Any help is appreciated.
Solved! Go to Solution.
06 Aug 2024 07:20 AM
I assume you might be referring to the problem notifications, you might need to use one of the available placeholders for the email body
https://www.dynatrace.com/news/blog/push-full-problem-details-to-your-notification-service/
22 Aug 2024 07:31 PM
For e.g I have set up an alert based on cpu usage 80% and I want to print actual cpu usage in the problem alert notification. But I could not find a placeholder for the metric key..
23 Aug 2024 02:07 AM
ProblemDetails placeholder should give the details you are looking for , have you tried it?
23 Aug 2024 09:51 PM
Yes I have {ProblemDetailsHTML} placeholder in my email body, which does not print the metric value.