You can call the GetTimeseriesData operation provided by Tablestore to query the time series data in a time series within a specific time period. If you are not sure about the information about the time series whose data you want to query, such as the metric name and data source, you can query the time series by specifying conditions and then query time series data.
Overview
You can call the GetTimeseriesData operation to query the time series data that meets specified conditions in a specified time series.
When you query time series data, you must specify the information about the time series whose data you want to query, and specify query conditions as required.
Specify whether to sort the query results in reverse chronological order. The reverse chronological order allows you to obtain the latest data in a time series.
Specify the columns that you want Tablestore to return. By default, all columns are returned.
Specify the maximum number of rows that you want Tablestore to return in a call.
Methods
You can query time series data by using the Tablestore console, CLI, or SDKs.
The features that are supported vary based on the method that you use to query time series data.
Before you query time series data, make sure that the following preparations are made:
You have obtained the information about the identifier of the time series whose data you want to query. If you are not sure about the identifier information, you need to retrieve the time series to obtain the information. For more information, see Manage time series metadata.
If you query time series data by using Tablestore SDKs, an OTSClient instance is initialized. For more information, see Initialize an OTSClient instance.
If you query time series data by using the Tablestore CLI, the Tablestore CLI is downloaded and started, and the information about the instance that you want to access is configured. For more information, see Download the Tablestore CLI and Start the Tablestore CLI and configure access information.
Use the Tablestore console
Use the Tablestore CLI
Use Tablestore SDKs
FAQ
References
You can also execute SQL statements to query time series data. For more information, see Use SQL to query time series data.
To visualize time series data, you can connect Tablestore to Grafana. For more information, see Connect Tablestore to Grafana.