Amazon Timestream is a serverless time series database service.
This supplemental guide explains how the data generated for TSBS is stored,
additional flags available when using the data importer (tsbs_load load timestream
),
and additional flags available for the query runner (tsbs_run_queries_timestream
). This
should be read after the main README.
Data generated by tsbs_generate_data
for Timestream is serialized in a
"pseudo-CSV" format, along with a custom header at the beginning. The
header is several lines long:
- one line composed of a comma-separated list of tag labels, with the literal string
tags
as the first value in the list - one or more lines composed of a comma-separated list of field labels, with the table name as the first value in the list
- a blank line
An example for the cpu-only
use case:
tags,hostname,region,datacenter,rack,os,arch,team,service,service_version,service_environment
cpu,usage_user,usage_system,usage_idle,usage_nice,usage_iowait,usage_irq,usage_softirq,usage_steal,usage_guest,usage_guest_nice
Following this, each reading is composed of two rows:
- a comma-separated list of tag values for the reading, with the literal string
tags
as the first value in the list - a comma-separated list of field values for the reading, with the hypertable the reading belongs to being the first value and the timestamp as the second value
An example for the cpu-only
use case:
tags,host_0,eu-central-1,eu-central-1b,21,Ubuntu15.10,x86,SF,6,0,test
cpu,1451606400000000000,58.1317132304976170,2.6224297271376256,24.9969495069947882,61.5854484633778867,22.9481393231639395,63.6499207106198313,6.4098777048301052,44.8799140503027445,80.5028770761136201,38.2431182911542820
AWS region where the db is located
Timestream client makes write requests with common attributes. If false, each value is written as a separate Record, and a request of 100 records at once is sent.
Dimension to use when hasing points to different workers
Use the current local timestamp when creating the records to load. Usefull when you don't want to worry about the retention period vs simulated period.
The duration for which data must be stored in the magnetic store
The duration for which data must be stored in the memory store.
Timestream requires the database name be part of the WHERE clause
of every query, so the --db-name
flag is a required flag
AWS region where the database is located