Skip to content

Timestream Pricing

0

Hi,

I wanted to ask some question regarding Timestreams pricing. I also want to be sure I'm not missing anything.

My understanding is that you pay for TCU/hour, so in my case every time I query. TCUs are billed on an hourly basis with per-second granularity (with a 30-second minimum). So it automatically counts as 30 seconds even for queries not taking that long?

Max query TCUs are set to 4 (minimum).

We query our Timestream table in grafana. On one of out dashboards we have 8 panel (8 queries). They all take about 2-3 seconds to execute (defaults to 30 seconds).

8 x 30 seconds = 240 seconds /// 240 seconds = 0.067 hours /// 0.067 hours x 4 TCUs = 0.26 TCU/hours /// 0.26 TCU/hours x € 0.57 = € 0.15

So that's € 0,15 to just visit 1 Grafana dashboard? Yesterday I monitored a machine and managed to accumulate about 1600 querries. According to my calculation above, that was about € 30. Is this pricing insane or am I missing something? Anybody that can clarify?

asked 2 years ago409 views
3 Answers
1

Hi,

In your calculation, you assume that each of your queries will use the full 4 TCUs, but how are sure of that ?

The doc explains clearly that the number of billed TCUs depends on the complexity of your query:

https://docs.aws.amazon.com/timestream/latest/developerguide/tcu.html#maxquery-tcu

This setting specifies the maximum number of compute units the service will use
 at any point in time to serve your queries. To run queries, you must set the minimum
 capacity to 4 TCUs. You can set the maximum number of TCUs in multiples of 4, for example, 4, 8, 1
6, 32, and so on. 
You're charged only for the compute resources you use for your workload. 

For example, if you set the maximum TCUs to 128, but consistently use only 8 TCUs. 
You'll be charged only for the duration during which you used the 8 TCUs. The default 
MaxQueryTCU in your account is set to 200. You can adjust MaxQueryTCU from 4 to 1000, 
using the AWS Management Console or UpdateAccountSettings API operation with the 
AWS SDK or AWS CLI.

So, I'd suggest that you make measurements of costs on your specific queries to see if you use 4 or less TCUs per query. Then, you can compute the cost of your visits. [The rest of your computation seems ok to me]

Best,

Didier

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • I set my MaxQueryTCU to 4.

    I can see the Admin Dashboard in Timestream itself. Every time Recources get used, it's always 4 TCUs. The graph I see should look like a graph, but it looks more like a bar diagram (spikes to 4 at times the TCUs get used).

  • “make measurements of costs on your specific queries” would that it were so easy! Cost is only exposed through the billing dashboard/cost explorer, not per-query.

0

We got a billing surprise due to TimeStream queries. The number of TCU used is apparently based on the number of queries per second. Each time you start a TCU it costs 30s. And it is in no way granular. Using the pricing calculator if you set the number of real-time queries to 17/h you get a $0 cost, but if you bump it to 18/h the cost is $1700. It will then show the same cost all the way to 25325/h but at 25326/h it doubles.

answered a year ago
0

For simplicity, the pricing calculator assumes seven concurrent queries per second are served with 4 TCUs at a latency of 1 second. The pricing calculator divides the number of queries to be uniformly distributed across the given time unit (per second, minute, hours, day, month). In some cases, where queries don’t run for more than 30 seconds (including the idle period), you’re not charged for the entire minute, and the calculator doesn’t take this into consideration, so your actual totals could be much lower than displayed. https://aws.amazon.com/blogs/database/understanding-and-optimizing-amazon-timestream-compute-units-for-efficient-time-series-data-management/

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.