Data Storage Strategies¶
As business applications increase, the scope of data monitoring requirements continues to expand, and the need for storage durations for different types of data will adjust accordingly. Guance offers various data storage strategies, allowing you to customize your data storage duration based on 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 Configure Storage Strategies. 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. 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 data storage strategy, and click Edit;
- Choose the desired duration;
- After completing the modifications, 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.
-
For data storage strategies other than metrics, the new retention strategy takes effect immediately, but data under the old storage strategy will not be deleted immediately. This data will still incur charges until it is rolled out of the strategy.
- Shortening data retention: For example, if APM data is adjusted from 14 days to 7 days, data before the adjustment time 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: For example, if APM data is adjusted from 7 days to 14 days, data before the adjustment time 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 Practices.
Data Storage Options¶
Guance offers two data storage solutions: Default Storage and SLS Storage:
- Default Storage: Uses Guance's proprietary storage for metrics data, and Elasticsearch / OpenSearch for logs data;
- SLS Storage: Uses Alibaba Cloud Log Service SLS to store data, with LogStore for logs data and MetricStore for metrics data.