You can adjust the metric data storage duration differently depending on whether you use pay-as-you-go or subscription billing.
Pay-as-you-go
The default storage duration is 90 days. To extend it, go to the Storage Time page and adjust the Storage Days:
-
Log on to the Managed Service for Prometheus console
-
In the navigation pane, click Integration Management.
-
On the Integration Management page, on the Integrated Environments tab, select the target environment.
-
On the target environment page, click the name of the target Prometheus instance.
-
On the Storage Time tab, set the storage duration, and then click Save.
Subscription
For subscription instances, adjust the storage duration by changing the instance specifications:
-
Log on to the Managed Service for Prometheus console.
-
On the Prometheus Monitoring page, select a region in the top menu bar and find the target instance. In the Actions column, choose . On the page that appears, select a new storage duration.