timeseries avg($metric)

Hello,

Var $metric is a existing metric, does anybody know how to make this work?

Or can this not de done?

KR Henk

Unfortunately value of variable (like $metric) is quoted string, so it will not work. But if you know the list of metrics you want to select from you can apply this pattern:

https://community.dynatrace.com/t5/DQL/Function-replace-by-variable-dropdown-selection/m-p/243753#M830

Kris