Compute Optimizer is no longer able to read CloudWatch memory metrics ?

0

I have installed CloudWatch agent in several EC2s in several accounts in different regions but from a more than a month ago Compute Optimizer is unable to read the Memory Metrics, has AWS changed something on the permissions?

Compute Optimizer message

The CloudWatch agent is generating the metrics: Enter image description here

Am I missing something ? Kind regards.

profile picture
Higher
asked a year ago425 views
2 Answers
0

Hello @MVR-060709, Thanks for your input. I have checked again the configuration and nothing has change from my side: Enter image description here

And as I said before, is happening in several accounts accros several regions.

Kind regards.

profile picture
Higher
answered a year ago
  • It is now showing the Memory metric, definitely it was something inside AWS.

0

Hello! There are a number of different permissions which are required for Compute Optimizer to access the metrics and then also for those recommendation to be viewable to you. To view EC2 metrics in Compute Optimizer, the user/role you are logged in with would need the ec2:DescribeInstances permission. To view CloudWatch metrics in Compute Optimizer, you would need the cloudwatch:GetMetricData permission. (Source: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html)

From a Compute Optimizer perspective, I recommend you leverage a service-linked role (if you aren't already). This will ensure that Compute Optimizer has all of the permissions it requires to interact with other services. I've included a link to how to recreate the role if it has been inadvertently removed. https://docs.aws.amazon.com/compute-optimizer/latest/ug/using-service-linked-roles.html

Hope this is helpful!

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions