If a config like the following is used: metrics: - aws_namespace: 'AWS/ECS' aws_metric_name: 'MemoryUtilization' aws_dimensions: [ 'ClusterName', 'ServiceName' ] aws_statistics: [ 'Maximum' ] aws_dimensions_select_regex: ServiceName: 'bot-.*' ClusterName: 'us-east-1-prod-public' Then it produces metrics with the "service_name" and "cluster_name" values swapped over, e.g. : `aws_ecs_memory_utilization_maximum{cluster_name="bot-blah",service_name="us-east-1-prod-public",task="bots-dev"} 8.69140625` If the `aws_dimensions` entries are swapped around, to be `[ 'ServiceName', 'ClusterName' ]` then the dimensions become correctly labelled. `aws_ecs_memory_utilization_maximum{cluster_name="us-east-1-prod-public",service_name="bot-blah",task="bots-dev"} 8.69140625`
If a config like the following is used:
Then it produces metrics with the "service_name" and "cluster_name" values swapped over, e.g. :
aws_ecs_memory_utilization_maximum{cluster_name="bot-blah",service_name="us-east-1-prod-public",task="bots-dev"} 8.69140625If the
aws_dimensionsentries are swapped around, to be[ 'ServiceName', 'ClusterName' ]then the dimensions become correctly labelled.aws_ecs_memory_utilization_maximum{cluster_name="us-east-1-prod-public",service_name="bot-blah",task="bots-dev"} 8.69140625