Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit f7b952d

Browse files
author
Chris Scott-Thomas
authored
reduce retention (#15)
Signed-off-by: Chris Scott-Thomas <chris.scott-thomas@infinityworks.com>
1 parent 64aa8be commit f7b952d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ EOF
4444
else
4545
echo "INFO: Using attached IAM roles/instance profiles to authenticate with S3 as no AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY have been provided"
4646
fi
47-
sleep 10
48-
ls /etc/prometheus
47+
4948
if [ -f "/etc/prometheus/prometheus-${PROMETHEUS_ROLE}.yml" ]; then
5049
echo "Config mounted as Volume from S3"
5150
else
@@ -66,4 +65,5 @@ exec /bin/prometheus \
6665
--web.enable-lifecycle \
6766
--storage.tsdb.min-block-duration=2h \
6867
--storage.tsdb.max-block-duration=2h \
68+
--storage.tsdb.retention.time=3d \
6969
--log.level=${LOG_LEVEL}

0 commit comments

Comments
 (0)