AWS CloudWatch Graphed Metrics: Are Dynamic Labels with Dimensions Broken?

0

I have a graphed metric in a widget on a dashboard, where the metric is a query such as SELECT SUM("my.metric") FROM "namespace" WHERE mydimension = 'x' GROUP BY instance. This results in several graphed lines for each value of the instance dimension. If I try to put a dynamic label ${PROP('Dim.instance')} on the graph, the dynamic labels just gets displayed up as "instance:--" rather than the values of the dimension. It seems like a bug, but am I just doing this wrong? I want the labels on the lines to show the value of the dimension that they are plotting.

It's the exact same problem this person is having:

https://stackoverflow.com/questions/72910015/aws-cloudwatch-dinamic-lables-not-working-properly

질문됨 2년 전1616회 조회
2개 답변
2
수락된 답변

Picking dimensions from metrics in Dynamic Labels is only supported for fully-specified metrics, not for metrics plotted from results of SEARCH or SELECT.

In your case though ${LABEL} (the default label for each metric) should be the instance (since that is the field you are grouping by). Try ${LABEL} instead

AWS
답변함 2년 전
profile pictureAWS
전문가
Chris_G
검토됨 2년 전
0

This does actually work with SEARCH expressions but not with queries. If you are having this problem, try switching to SEARCH expressions.

"If you use a dynamic label with a search expression, the dynamic label applies to every metric returned by the search." as stated here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html

AWS
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠