relation between CloudWatch Metrics and Cost and Usage Report line_item_usage_amount

0

What I'm trying to do is find the logic to map a CloudWatch Metrics to the line_item_usage_amount value in Cost and Usage Report.

Below is the content of the Cost and Usage Report.

identity_time_intervalline_item_product_codeline_item_usage_typeline_item_usage_amount
2023-06-01T00:00:00Z/2023-06-01T01:00:00ZAmazonSageMakerAPN2-Train:ml.m5.24xlarge0.03270278
2023-06-01T00:00:00Z/2023-06-01T01:00:00ZAmazonSageMakerAPN2-Train:ml.m5.24xlarge0.01860417

SageMaker calculates its price based on the number of hours spent. So I assume that between 00:00 and 01:00, the APN2-Train:ml.m5.24xlarge instance was charged of roughly 0.05 hours of usage.

However, when I query the CloudWatch metric with the option below,

start_time : 2023-06-01T00:00:00Z

end_time : 2023-06-01T01:00:00Z

MetricName : ResourceCount

Stat : Maximum/Average/...

period : 300

I only get 3 datapoint

2023-06-01 00:55:00. 1.0

2023-06-01 00:50:00. 0.0

2023-06-01 00:45:00. 1.0

Firstly, why do I get only 3 datapoints when given 5min period in a 60min time interval? I supposed there should be 12 datapoints. Secondly, which option should I change to find an equation to calculate the 'line_item_usage_amount' from the CloudWatch Metrics?

I very much appreciate any help possible :)

已提問 1 年前檢視次數 410 次
1 個回答
0

Hi,

I suggest you open up a ticket with AWS Billing Support. Here are the general steps to contact AWS Billing Support:

  • Open the AWS Support Center page. You can do this by clicking on "Support" in the navigation bar at the top of the screen, then selecting "Support Center".
  • Click on "Create case". This option is usually on the right side of the Support Center page.
  • Select the type of case. In this case, you would select "Billing".
  • Fill in the case details. This will usually include your AWS account number, a brief description of the issue, and other relevant details. Make sure to include as much information as you can to help the Support team resolve your issue.
  • Submit the case. AWS Support will get back to you by email, phone, or through the AWS Support Center, depending on the contact method you selected.
profile pictureAWS
專家
已回答 1 年前

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

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

回答問題指南