Missing table size metrics in Cloudwatch for Amazon Keyspaces

0

I started to evaluate Amazon Keyspaces and checked available metrics in Cloudwatch related to this service. I found several metrics about used and provisioned capacity units, read and write counts and sizes, but I was not able to find a metrics which would tell me what is table size. As Keyspaces usage is charged by storage size as well, it would be very important to know how much I will pay for storing my data.

已提問 4 年前檢視次數 424 次
5 個答案
0

Thanks for the feedback! Yes, adding a metric for table size is on our roadmap. I don't have any timing to share at this time, but we will update this forum post when it is available.

已回答 4 年前
0

Hello, are there any updates on size metrics? It is essential for our work. Thanks!

x0r
已回答 3 年前
0

Hi x0r - no updates yet. Quick questions for you - are you interested in the table size in term of GBs (i.e., billable storage size) or in terms of rows. How are you using this data? Also, do you need it to be real-time, or is periodic updates acceptable (i.e., we would update the metric on an interval).

已回答 3 年前
0

To get the storage usage of your Keyspaces workload you can the get-cost- and-usage- with- resource API. You can query this API via the AWS CLI. The API can be used in granularity of Monthly, Daily and Hourly to fit your use case.

Here is the documentation for this API and information on how to use it:
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/get-cost-and-usage-with-resources.html

First you will need to go into AWS Cost management preferences and click the box that says Hourly and Resource level data.
(picture included, screenshot at the top you just have to click on it)

Here is an example of a query that will tell you the storage usage Hourly.

  1. first you have to use the vi to save a file in the AWS CLI called "filter.json"

  2. Copy& Paste this is what you want to include in your filter.json file:
    {
    "Dimensions": {
    "Key": "SERVICE",
    "Values": [
    "Amazon Keyspaces (for Apache Cassandra)"
    ]},
    "Dimensions": {
    "Key": "USAGE_TYPE",
    "Values": [
    "TimedStorage-ByteHrs"
    ]
    }
    }

3.The you will need to do this query, You will want to change the time period to you desired date and hour.

aws ce get-cost-and-usage --time-period Start="2021-10-18T10:00:00Z",End="2021-10-18T11:00:00Z" --granularity HOURLY --metrics "BlendedCost" "UnblendedCost" "UsageQuantity" --group-by Type=DIMENSION,Key=SERVICE Type=TAG,Key=Environment --filter file://filters.json

已回答 3 年前
0

Amazon Keyspaces now reports table size metric to CloudWatch. This will report the billiable table size which is the raw size of a single replica. While Amazon Keyspaces replicates data three times over multiple availability zones, it only charges you for one. You can also leverage the following Cloudformation template to build cloudwatch dashboard. https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates

AWS
已回答 1 年前

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

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

回答問題指南