Amazon Timestream is a fast, scalable, and serverless time series database service that collects, stores, and queries time-series data for IoT and operational applications. With Amazon Timestream, you pay only for what you use. You are billed separately for writes, data stored, and data scanned by queries. Amazon Timestream automatically scales your writes, storage, and query capacity based on usage. You can set the data retention policy for each table and choose to store data in an in-memory store or magnetic store.
Timestream charges based on the number of writes. Each write is counted in units of 1KB.
The memory store processes incoming time series data and it is optimized for rapid point-in-time queries. Memory store capacity consumed by your tables is billed for every GB-hour used.
SSD Store (Coming soon)
SSD store capacity consumed by your tables is billed for every GB-hour used.
This pricing is applicable for US East (Northern Virginia) Region, US East (Ohio) Region, and US West (Oregon) Region. The pricing in Europe (Ireland) Region will be 13.1% more than the price below.
|Price per GB stored per day||$0.01|
The magnetic store is optimized for fast analytical queries. Magnetic store capacity consumed by your tables is billed for every GB-month used.
You are charged for the number of bytes scanned by Amazon Timestream, rounded up to the nearest megabyte, with a 10MB minimum per query. There are no charges for metadata queries such as SHOW TABLE, SHOW MEASURES, DESCRIBE TABLE, LIST TABLES, etc. Cancelled queries are charged based on the amount of data scanned.
Data transfer "in" and "out" refer to transfer into and out of Amazon Timestream. There is no additional charge for data transferred between Amazon Timestream and other AWS services within the same AWS Region (in other words, $0.00 per GB). Data transferred across AWS Regions, such as between Timestream in the US East (N. Virginia) Region and Amazon EC2 in the EU (Ireland) Region is charged on both sides of the transfer.
Monitoring EC2 metrics
Consider an application running on 200 EC2 instances with each instance emitting 10 metrics at 1-minute intervals. You want to use Amazon Timestream to store and analyze this data to better understand the performance and availability of your application. You plan to run 100 queries per hour to identify and alert on anomalous activities and 50 queries per day for ad-hoc analysis. The alerting queries check for anomalous activities for data sent over the past 5 minutes and the ad-hoc queries analyze the most recent 24 hours-worth of data. You also want to store data 6 hours’-worth of data in the memory store and 12 months’-worth of data in the magnetic store.
The monthly cost of running this workload on Amazon Timestream is as follows:
- Each metric when represented as an Amazon Timestream record consisting of dimensions and a measure is approximately 0.2 KB.
- 10 metrics are batched to produce a 2 KB payload for writes which is 2 writes of 1 KB each in Amazon Timestream.
- The ad-hoc analysis queries process ~5% of the time series data accumulated over the past 24 hours. We assume that on an average ~95% of the data is pruned by Amazon Timestream’s query engine when evaluating query predicates (WHERE clause).
Monthly cost calculation
- Writes cost: $ 8.64 per month. This is computed as: ( 2 writes * 200 EC2 instances * 60 minutes * 24 hours * 30 days) * $0.50/ 1 MM writes.
- Memory store cost: $ 3.56 per month. This is computed as: ( 2 KB per minute per instance * 200 instances * 60 minutes * 6 hours * 24 hours * 30 days) * $0.036 / GB-hour.
- Magnetic store cost: $ 5.93 per month. This is computed as: (2 KB per minute per instance * 200 instances * 60 minutes * 24 hours * 30 days * 12 months) * $0.03 /GB-month.
- Query cost (alerting queries): $ 7.03 per month. This is computed as (10 MB per alerting query * 100 queries per hour * 24 hours * 30 days * $0.01 / GB). Alerting queries process 5 minutes of data. 5 minutes of data is 1 MB (2 KB per minute per instance * 100 instances * 5), which gets rounded up to 10 MB minimum charge for queries.
- Query cost (ad-hoc queries): $ 0.41 per month. This is computed as (28.1 MB per ad-hoc query * 50 queries per day * 30 days * $0.01 / GB). Ad-hoc queries consider 24 hours-worth of data and Amazon Timestream’s query engine will prune 95% of the data. 5% of the data is 28.1 MB (2 KB per minute per instance * 200 instances * 60 minutes * 24 hours * 5%)
- Total cost: $25.57 per month ($ 8.64 + $ 3.56 + $ 5.93 + $ 7.03 + $ 0.41).