optimize cloudwatch api calls metrics

0

Those cloudwatch metrics cost me 500$ per month :

347.01$ GetMetricData

53.37$ GetMetricStatistics

ListMetrics : 45$

MetricStorage : 54$ MetricStorage:AWS/EC2 : 14$ MetricStorage:AWS/S3 && MetricStorage:AWS/Beanstalk 3.38$ PutLogEvents 11.5$

PutMetricData 1.5$

Uknown : 4$

i wanna a way to know the services that use those metrics most specifically the GetMetricData metric , and how to optimize the cost generated by those apis calls

just to know the cloudtrail isn't enabled , so if there any alternative , if not how to do acheive that with cloudtrail ??

已提問 6 個月前檢視次數 300 次
1 個回答
2

GetMetricData is used to retrieve metric data-sets from CloudWatch. Excessively high numbers of GetMetricData calls are often due to 3rd-party tooling or services (such as DataDog and similar services) that are using CloudWatch data to create dashboards and other visualizations.

You can enable logging for CloudWatch data-api's to CloudTrail and then you will be able to review CloudTrail and see the identify of the caller making these calls, and knowing that make changes that could reduce the number of calls.

Ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html#CloudWatch-data-plane-events

AWS
專家
已回答 6 個月前
profile picture
專家
已審閱 6 個月前
profile picture
專家
已審閱 6 個月前

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

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

回答問題指南