Skip to content

Commit 16a4a14

Browse files
authored
Merge pull request #72782 from eromanova97/OBSDOCS-72
OBSDOCS-72: Document that when metrics data retention time is set to …
2 parents 00048f2 + 5f10bac commit 16a4a14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/monitoring-modifying-retention-time-and-size-for-prometheus-metrics-data.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="modifying-retention-time-and-size-for-prometheus-metrics-data_{context}"]
77
= Modifying the retention time and size for Prometheus metrics data
88

9-
By default, Prometheus automatically retains metrics data for 11 days. You can modify the retention time for
9+
By default, Prometheus automatically retains metrics data for 15 days. You can modify the retention time for
1010
ifndef::openshift-dedicated,openshift-rosa[]
1111
Prometheus
1212
endif::openshift-dedicated,openshift-rosa[]
@@ -21,11 +21,12 @@ Note the following behaviors of these data retention settings:
2121
* 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.
2222
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.
2323
* 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 11 days, and retention size is not set.
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.
2525
* If you define values for both `retention` and `retentionSize`, both values apply.
2626
If any data blocks exceed the defined retention time or the defined size limit, Prometheus purges these data blocks.
2727
* If you define a value for `retentionSize` and do not define `retention`, only the `retentionSize` value applies.
2828
* If you do not define a value for `retentionSize` and only define a value for `retention`, only the `retention` value applies.
29+
* If you set the `retentionSize` or `retention` value to number 0, the default settings apply. The default settings set retention time to 15 days and do not set a value for retention size.
2930
3031
.Prerequisites
3132

0 commit comments

Comments
 (0)