Monitor usage of Amazon CloudWatch dashboards for cost optimization

0

I have several hundred Amazon CloudWatch dashboards and they cost a significant amount of money at $3 USD a pop. I'm sure out of all these dashboards, at least some of them are not actively being utilized.

What is the best way to identify which CloudWatch dashboards are actively being used by team members, and which ones are not? The dashboards that aren't actively being used can probably be backed up / exported and then deleted from our AWS account structure.

I'm assuming that the best way to accomplish this would be to monitor CloudTrail logs. Is there some other mechanism I should be looking at for this purpose?

1개 답변
0

To best of my knowledge, easiest way would be querying cloudtrail on the basis of eventName GetDashboard. CLI command would look like something as below:

  aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=GetDashboard --profile <profilename> --query 'Events[].{username:Username,eventDetail:CloudTrailEvent}'

Assumption here is, getting the data from last 90 days would be enough for you to decide, which dashboards are being accessed and then filter from all the available dashboards and decide which are not being accessed at all and can be decommissioned.

If you have cloudtrail logs exported to s3, then certainly you can look beyond 90 days by querying the same data for eventName=GetDashboard filter.

Hope it helps, comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
전문가
답변함 한 달 전
profile pictureAWS
전문가
검토됨 한 달 전
  • Do you have any additional questions, happy to assist.

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

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

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

관련 콘텐츠