Using template variables in legend with Cloudwatch Datasource

I wanted to use alias by InstanceName so that I can populate instance names instead of instance ids in the legend.

I tried using Instance Names in dimensions instead of instance ids but that is not supported by AWS.

Is there a way I can access the corresponding instance name instead of instance id.

So the issue is I wanted to know if there is a way I can do that.
I can suggest a new field below dimensions where we can store tags corresponding to that instance id and store instance names there which we can later use in the Alias

No, you can’t use any tag (tag Name in your case = InstanceName) in the legend, because tags are not part of returned series(s) - use query inspector and you will see, that only InstanceId is available.

1 Like