Data Storage Strategies¶
Note
As business applications increase, the scope of data monitoring needs continues to expand, and the requirements for the storage duration of different types of data will also adjust accordingly.
Guance provides various data storage strategies. You can customize your data storage duration according to your needs, thereby effectively controlling data storage costs and saving expenses.
Data Storage Duration¶
Type |
Duration |
|---|---|
| Metrics | This is the global data retention policy for metrics. If you have specific data retention duration requirements for certain measurements, you can make custom modifications through Configuration Storage Strategy. 3 days / 7 days (default) / 14 days / 30 days / 180 days / 360 days |
| Logs | 3 days / 7 days / 14 days (default) / 30 days / 60 days |
| Data Forwarding-Guance | 180 days (default) / 360 days / 720 days |
| Events | 14 days (default) / 30 days / 60 days |
| APM/LLM-Trace | 3 days / 7 days / 14 days (default) / 30 days / 60 days |
| APM-Profile | 3 days / 7 days / 14 days (default) / 30 days / 60 days |
| RUM | 3 days / 7 days / 14 days (default) |
Changing Storage Duration¶
Owners of Commercial Plan workspaces can adjust data storage strategies multiple times in a single day. Except for the first modification, which takes effect immediately, other modifications will take effect the next day based on the last adjustment record. After the strategy is changed, data will be judged for expiration based on the latest configuration and cleared at 0:00 the next day.
Steps to change:
- Go to Management > Workspace Settings > Change Data Storage Strategy;
- Click Change;
- Select the data type for which you want to modify the storage strategy, and click Edit;
- Select the desired duration;
- After making the changes, click Confirm to change the data storage duration in the current workspace.
Notes on Changes¶
-
Only owners of Commercial Plan workspaces are allowed to perform this operation;
-
After changing the metrics data storage strategy, data under the old storage strategy will be deleted. Please choose carefully.
-
After changing the storage strategy for data other than metrics, the new retention strategy takes effect immediately. Data under the old storage strategy will not be deleted immediately and will still incur charges until the strategy rolls out to delete old data.
- Shortening data retention time: For example, if APM data is adjusted from 14 days to 7 days, data before the adjustment date will still be charged based on the 14-day storage strategy, while data after the adjustment will generate new indexes and be charged based on the new 7-day storage strategy;
- Extending data retention time: For example, if APM data is adjusted from 7 days to 14 days, data before the adjustment date will still be charged based on the 7-day storage strategy, while data after the adjustment will generate new indexes and be charged based on the new 14-day storage strategy.
For more details, refer to ES Multi-Tenant Lifecycle Management Practice.
Data Storage Options¶
Guance provides two data storage solutions: Default Storage and SLS Storage:
- Default Storage: Uses Guance's self-developed storage for metrics data, and Elasticsearch / OpenSearch for logs data;
- SLS Storage: Uses Alibaba Cloud Log Service SLS for data storage, with LogStore for logs data and MetricStore for metrics data.
