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
demandé il y a un an457 vues
2 réponses
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
répondu il y a un an
  • 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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions