1 Answer
- Newest
- Most votes
- Most comments
0
Hi Vinusan,
Please try this solution it will be helpful helpful for you,
AWS Cost Explorer
you can use AWS Cost Explorer to get a detailed view of your costs. This tool can provide insights into your MSK costs if you have been using MSK standard and want to transition to MSK serverless.
Please look at AWS Document Link you will get more information.
https://aws.amazon.com/aws-cost-management/aws-cost-explorer/
Relevant content
- asked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 8 months ago

Hi Parthasaradi, In cost explorer i can get the data for my usage only for the previous months right. I want to get/calculate the cost if i switch to MSK serverless with my current workload.
Hello Vinusan,
you can use the CloudWatch metrics from your existing setup to simulate the cost based on the pricing dimensions of MSK Serverless.
To Estimate MSK Serverless Cost:
Gather Metrics from CloudWatch:
Cluster Uptime: Total hours your current cluster is running. Number of Partitions: Total partitions in your current setup. Storage Used: Total storage used in GiB. Data In: Total data ingested in GiB. Data Out: Total data egressed in GiB.
Is it possible to use a python script to get the above data to calculate the cost for one month
Yes, it's possible to use a Python script to gather the required metrics from AWS CloudWatch and calculate the cost for one month. you can use the boto3 library to interact with AWS CloudWatch and fetch the necessary metrics.