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
專家
已回答 1 個月前
profile pictureAWS
專家
已審閱 1 個月前
  • Do you have any additional questions, happy to assist.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南