Time Series¶
Concepts¶
| Term | Description |
|---|---|
| Daily Active Time Series | The number of Time Series that generate new metric data on the current day. The count is based on Time Series that had data produced during the day. If data collection stops, no Time Series fees will be incurred for the new day, but previously collected metric data can still be queried. |
| Measurement | A collection of statistical values, analogous to a table in a relational database. |
| Data Point | A sample of metric data, analogous to a row in a relational database. |
| Time | The timestamp when a data point was generated, i.e., the time when DataKit collected the metric data. |
| Field | A numeric value that changes over time. For example, in the CPU measurement, cpu_total, cpu_use, cpu_use_percent, etc. |
| Tags | Attribute information that does not change over time. For example, in the CPU measurement, fields such as host and project are used to identify the actual object attributes of the metric. |
Billing Item Statistics¶
The number of Time Series newly added on the current day is counted at hourly intervals. After 24 data points are obtained, the maximum value is taken as the actual billable quantity.
Example¶
Take the measurement CPU as an example. Based on a single Field cpu_use_percent, there are 6 data points. Each data point includes the following fields:
-
Time field:
time -
Field:
cpu_use_percent -
Tags:
hostandproject
The distribution of data points is as follows:
-
Rows 1 and 4:
hostisHangzhou_test1,projectbelongs toGuance, representing the CPU usage of the Hangzhou server. -
Rows 2 and 5:
hostisNingxia_test1,projectbelongs toGuance, representing the CPU usage of the Ningxia server. -
Rows 3 and 6:
hostisSingapore_test1,projectbelongs toGuance_oversea, representing the CPU usage of the Singapore server.
Based on the above data, there are 3 Time Series combinations for the cpu_use_percent Field:
-
"host":"Hangzhou_test1","project":"Guance" -
"host":"Ningxia_test1","project":"Guance" -
"host":"Singapore_test1","project":"Guance_oversea"
To calculate the total number of Time Series for all metrics in the current workspace, simply sum the Time Series count of each metric that is actually collected.
Cost Calculation Formula¶
Daily cost = Actual billable quantity / 1000 × Unit price (the unit price is applied based on the data storage policy)
Assume a user has installed one host DataKit and enabled default metric collection. This host generates 600 daily active Time Series each day. The cost can be estimated as follows:
-
Determine the number of hosts with DataKit installed:
For example, 1 host installed
-
Calculate the number of daily active Time Series:
Number of hosts × 600 = Number of daily active Time Series
For example, 1 host × 600 = 600 daily active Time Series
-
Calculate the estimated daily cost:
Unit price of the corresponding data storage policy × Number of daily active Time Series / 1000
For example, assuming the unit price is 1 RMB per thousand, the cost is 1 RMB per thousand × 600 / 1000 = 0.6 RMB
