Concatenate template variables for Cloudwatch dimension

I’m trying to render statistics for an autoscaling group whose name is the concatenated of two template variables (“component” and “environment”) seperated by a dash (E.g. vpn-live), but Grafana doesn’t seem to support this?

I’ve tried:

$component-environment {component}-${environment}
“$component-$environment”
[[component]]-[[environment]]

But nothing seems to work and I can’t find anything in the documentation - Is this possible? (Screenshot attached). If I select the name of the ASG in the dropdown my metrics are correctly shown.

Cloudwatch templating support is quite limiited right now due to limitations in the cloudwatch API

Use the variabel like this: [[varName]], in your case the last syntax you tried should work:
[[component]]-[[environment]]