Skip to content

Commit aa1578a

Browse files
Substitutes deprecated storage.tsdb.retention property with storage.tsdb.retention.time
1 parent 2e06f3e commit aa1578a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jobs/prometheus2/spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ properties:
6969
prometheus.rules.alert.resend_delay:
7070
description: "Minimum amount of time to wait before resending an alert to Alertmanager"
7171

72-
prometheus.storage.tsdb.retention:
72+
prometheus.storage.tsdb.retention.time:
7373
description: "How long to retain samples in the storage"
7474
prometheus.storage.tsdb.min_block_duration:
7575
description: "Minimum duration of a data block before being persisted"

jobs/prometheus2/templates/bin/prometheus_ctl

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ case $1 in
6969
--rules.alert.resend-delay="<%= resend_delayt %>" \
7070
<% end %> \
7171
--storage.tsdb.path="${STORE_DIR}" \
72-
<% if_p('prometheus.storage.tsdb.retention') do |retention| %> \
73-
--storage.tsdb.retention="<%= retention %>" \
72+
<% if_p('prometheus.storage.tsdb.retention.time') do |retention| %> \
73+
--storage.tsdb.retention.time="<%= retention %>" \
7474
<% end %> \
7575
<% if_p('prometheus.storage.tsdb.min_block_duration') do |min_block_duration| %> \
7676
--storage.tsdb.min-block-duration="<%= min_block_duration %>" \

0 commit comments

Comments
 (0)