Skip to content

Commit a229313

Browse files
authored
Merge pull request #86835 from eohartman/osdocs-12836
OSDOCS-12836: Changing default value from 15 to 11.
2 parents 9972878 + 105c8f1 commit a229313

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88

99
By default, Prometheus retains metrics data for the following durations:
1010

11+
ifndef::openshift-dedicated,openshift-rosa[]
1112
* *Core platform monitoring*: 15 days
1213
* *Monitoring for user-defined projects*: 24 hours
14+
endif::openshift-dedicated,openshift-rosa[]
15+
16+
ifdef::openshift-dedicated,openshift-rosa[]
17+
* *Core platform monitoring*: 11 days
18+
* *Monitoring for user-defined projects*: 24 hours
19+
endif::openshift-dedicated,openshift-rosa[]
1320

1421
You can modify the retention time for
1522
ifndef::openshift-dedicated,openshift-rosa[]
@@ -26,12 +33,22 @@ Note the following behaviors of these data retention settings:
2633
* 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.
2734
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.
2835
* 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.
36+
ifndef::openshift-dedicated,openshift-rosa[]
2937
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 15 days for core platform monitoring and 24 hours for user-defined project monitoring. Retention size is not set.
38+
endif::openshift-dedicated,openshift-rosa[]
39+
ifdef::openshift-dedicated,openshift-rosa[]
40+
* If you do not explicitly define values for either `retention` or `retentionSize`, retention time defaults to 11 days for core platform monitoring and 24 hours for user-defined project monitoring. Retention size is not set.
41+
endif::openshift-dedicated,openshift-rosa[]
3042
* If you define values for both `retention` and `retentionSize`, both values apply.
3143
If any data blocks exceed the defined retention time or the defined size limit, Prometheus purges these data blocks.
3244
* If you define a value for `retentionSize` and do not define `retention`, only the `retentionSize` value applies.
3345
* If you do not define a value for `retentionSize` and only define a value for `retention`, only the `retention` value applies.
46+
ifndef::openshift-dedicated,openshift-rosa[]
3447
* If you set the `retentionSize` or `retention` value to `0`, the default settings apply. The default settings set retention time to 15 days for core platform monitoring and 24 hours for user-defined project monitoring. By default, retention size is not set.
48+
endif::openshift-dedicated,openshift-rosa[]
49+
ifdef::openshift-dedicated,openshift-rosa[]
50+
* If you set the `retentionSize` or `retention` value to `0`, the default settings apply. The default settings set retention time to 11 days for core platform monitoring and 24 hours for user-defined project monitoring. By default, retention size is not set.
51+
endif::openshift-dedicated,openshift-rosa[]
3552
3653
[NOTE]
3754
====

0 commit comments

Comments
 (0)