Until now, you may have noticed that the labels in the graph legend have never been updated. While you can manually edit them, doing so for multiple metrics is not ideal. In this section, we will explore how to automatically update labels without manual changes.
In the search bar, enter the following:
exe=cloudwatch
MetricName=procstat_memory_rss
(specifying the exact metric name).Switch to the Graphed metrics tab.
You will see that the graph labels have been updated.
${PROP('Dim.exe')} - ${PROP('Dim.InstanceId')} - ${PROP('MetricName')}
The labels are now displayed in the updated format.