I was wondering if there was a way to filter dimension_values based on another dimension variable.
For example: I want the service names of only the services in a specified cluster.
Something like:
dimension_values(us-east-1, AWS/ECS, CPUUtilization, ServiceName, [{“ClusterName”:"$ClusterName"}])
Any luck @ngynbtn? I’m facing the same issue trying to use the $region template variable in another template variable, like:
dimension_values({“region”:"$region"},AWS/ELB,Latency,LoadBalancerName)
Based on the example from the doc at http://docs.grafana.org/features/datasources/cloudwatch/, which lists:
“dimension_values(us-east-1,CWAgent,disk_used_percent,device,{“InstanceId”:“$instance_id”})”
I’ve tried variations on that, just listing $region for instance, but no luck. I get a metric request error every time.
Edit: Think I figured it out. Had to reference the variable as [[region]] instead of $region:
dimension_values([[region]],AWS/ELB,Latency,LoadBalancerName)