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개 답변
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
전문가
답변함 일 년 전

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

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

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

관련 콘텐츠