Skip to content

Data Storage Policies


As business applications increase, the scope of data monitoring requirements expands, and the need for storage duration of different types of data will also be adjusted accordingly.

TrueWatch provides various data storage policies. You can customize your data storage duration according to your needs, thereby effectively controlling data storage costs and saving money.

Data Storage Duration

Type
Duration
Metrics This refers to 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 Policies

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 - TrueWatch 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)

Data Storage Options

TrueWatch provides two data storage solutions:

Storage Solution Technical Architecture Description
Default Storage TrueWatch Self-developed Storage + Elasticsearch/OpenSearch Metric-type data uses self-developed storage, log-type data uses ES/OpenSearch
SLS Storage Alibaba Cloud Log Service (SLS) LogStore stores log-type data, MetricStore stores metric-type data

Change Storage Policy

Steps

  1. Go to Management > Workspace Settings > Change Data Storage Policy;
  2. Click Change;
  3. Select the data type for which you need to modify the storage policy, and click Edit;
  4. Select the target duration;
  5. After modification, click Confirm to change the data storage duration within the current workspace.

Effective Rules

  1. First modification of the day: Takes effect immediately;

  2. Multiple modifications on the same day: The last modification takes precedence and takes effect the next day;

  3. After the policy is changed, the system determines the data expiration range based on the latest configuration and performs cleanup at 0:00 the next day.

Change Notes

  1. Permission restriction: Only the owner of a Commercial Plan workspace can perform this operation;

  2. After changing the Metrics storage policy, data under the old policy will be deleted immediately. Please proceed with caution;

  3. For other data types (Logs, Trace, Profile, etc.) except Metrics, after changing the policy:

  4. New data: Stored and billed immediately according to the new policy

  5. Old data: Continues to exist until rolled deletion and is billed according to the original policy

Scenario Example:

  • Shortening retention time (14 days → 7 days): Data generated before the adjustment point is still billed according to the 14-day policy until cleared; subsequent data is billed according to the 7-day policy

  • Extending retention time (7 days → 14 days): Data generated before the adjustment point is still billed according to the 7-day policy; subsequent data is billed according to the 14-day policy

For more details, please refer to ES Multi-Tenant Lifecycle Management Practice.