You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Modifying the retention time and size for Prometheus metrics data
8
8
9
-
By default, Prometheus automatically retains metrics data for 15 days. You can modify the retention time for
9
+
By default, Prometheus automatically retains metrics data for 11 days. You can modify the retention time for
10
10
ifndef::openshift-dedicated,openshift-rosa[]
11
11
Prometheus
12
12
endif::openshift-dedicated,openshift-rosa[]
@@ -21,7 +21,7 @@ Note the following behaviors of these data retention settings:
21
21
* Data in the `/wal` and `/head_chunks` directories counts toward the retention size limit, but Prometheus never purges data from these directories based on size- or time-based retention policies.
22
22
Thus, if you set a retention size limit lower than the maximum size set for the `/wal` and `/head_chunks` directories, you have configured the system not to retain any data blocks in the `/prometheus` data directories.
23
23
* The size-based retention policy is applied only when Prometheus cuts a new data block, which occurs every two hours after the WAL contains at least three hours of data.
24
-
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 15 days, and retention size is not set.
24
+
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 11 days, and retention size is not set.
25
25
* If you define values for both `retention` and `retentionSize`, both values apply.
26
26
If any data blocks exceed the defined retention time or the defined size limit, Prometheus purges these data blocks.
27
27
* If you define a value for `retentionSize` and do not define `retention`, only the `retentionSize` value applies.
0 commit comments