Memory metric showing in insufficient state after creation of memory metric

0

Hi All,

I have created alarms for memory usage in my one of EC2 instance using cloudwatch but created alarms showing insufficient state.
i refereed this link https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html while configure but metric data showing in linux system tab.
Used this alarms to configure polices in ASG but these alarms are not triggering because in insufficient state.

Can any one help me in that how to resolve this issue?

Regards,
Moula

maula
질문됨 5년 전398회 조회
2개 답변
0

Do you currently have an IAM role attached to your EC2 Instance? One possible issue is that your EC2 instance does NOT have permissions to write data to CloudWatch, which is one of the reasons that the Memory metric would be stuck in the Insufficient state. If you don't currently have a Role assign,

  1. Go to IAM and click on Roles.
  2. click on Create Role
  3. Select type of trusted entity 'AWS service, EC2, Lambda and others'
  4. For Choose the service that will use this role, click on 'EC2'
  5. Click on button Next: Permissions
  6. In Filter policies, enter 'CloudWatchFull'
  7. Click the checkmark box next to 'CloudWatchFullAccess'
  8. Click Next: Tags
  9. Click Next: Review
  10. In Role name, enter 'EC2_CloudWatch'
  11. Click on Create Role
  12. Go back to your EC2 Dashboard
  13. Select your Running Instance
  14. Select 'Actions->Instance Settings->Attach/Replace IAM Role'
  15. Select the newly created IAM role
  16. Hit Apply button
    Hope this helps

Edited by: rtakeshi on Jul 31, 2019 11:26 AM - Removed the brackets which were causing formatting issues

답변함 5년 전
0

Its name space issue, we have to exact name space which AWS provides. I changed name space, now its working fine

maula
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠