Automatic archiving for instances
Alibaba Cloud Managed Service for Prometheus supports archival storage for long-term data retention at a lower cost.
Billing
The automatic archiving feature is a paid service. For more information, see Billing of Managed Service for Prometheus.
How it works
When automatic archiving is enabled for a Prometheus instance, the service automatically compresses and moves data to archival storage after its default storage duration expires. Archived data remains queryable, but with reduced query concurrency.
For example, if an instance has a default storage duration of 90 days and an archival storage duration of 60 days:
-
Data is retained for up to 150 days. Data older than 150 days is automatically deleted.
-
Data from the last 90 days is retained in default storage. Queries for this data are not subject to query concurrency limits.
-
Data between 91 and 150 days old is stored in archival storage. Queries for this data are subject to query concurrency limits.
Limitations
-
Archival storage duration: You can set the duration to 60, 90, 180, or 365 days.
-
Query concurrency limit: Only one concurrent query against archived data is allowed at a time. Requests that exceed this limit time out.
-
This feature is only available for Prometheus instances that use the pay-by-observable-data billing mode.
Enable and use
This feature does not require separate activation. Follow the steps below to enable it for an instance.
Enable archiving for new instances
-
Log on to the Managed Service for Prometheus console
-
In the navigation pane on the left, choose to open the instance list for Managed Service for Prometheus.
-
On the Instances page, click Create Prometheus instance.
-
On the instance creation page, set Instance type to General-purpose Instance. Then, click the
icon to enable Automatic Archiving, set the archival storage duration, and configure other parameters as prompted.The Archival Storage Duration can be set to 60, 90, 180, or 365 days.
-
After configuring the parameters, click Create Immediately.
Enable automatic archiving for an existing instance
-
On the Instance List page, find the target instance and click Settings in the Actions column.
-
On the Settings page, click the Storage Time tab.
-
In the Storage Settings section, click the
icon to enable Automatic Archiving, set the archival storage duration, and then click Save.
Disable automatic archiving
-
On the Instance List page, find the target instance and click Settings in the Actions column.
-
On the Settings page, click the Storage Time tab.
-
In the Storage Settings section, click the
icon to disable Automatic Archiving, and then click Save.