I am trying to create a dashboard and want a widget to display the CPUUtilization graphs of ALL EC2 instances within my autoscaling. Whenever a new instance gets added by autoscaling rules then the dashboard widget should include the graph of new EC2 instance automatically and when an instance gets deleted it should remove the graph of that instance.
When I select the autoscaling group as the metric it simply displays one line in the graph although there are 4 instances within that autoscaling groups.
Is that possible? If yes, what am I doing wrong?
AWS team release an Lambda function to auto update your dashboard : here is the link
The script:
But it have also limitation :