Print the metric key in the email alert

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.

I assume you might be referring to the problem notifications, you might need to use one of the available placeholders for the email body

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..

ProblemDetails placeholder should give the details you are looking for , have you tried it?

Yes I have {ProblemDetailsHTML} placeholder in my email body, which does not print the metric value.