Skip to content

Commit

Permalink
Merge pull request #3916 from yuvipanda/prometheus
Browse files Browse the repository at this point in the history
Keep two years of prometheus data for our main shared cluster
  • Loading branch information
yuvipanda authored Apr 4, 2024
2 parents 69395e9 + 7b3e6bc commit a5aece9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/clusters/2i2c/support.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ prometheusStorageClass:

prometheus:
server:
defaultFlagsOverride:
- -c
- "rm -rvf /data/wal/* && \
exec /bin/prometheus \
--storage.tsdb.retention.time=732d \
--config.file=/etc/config/prometheus.yml \
--storage.tsdb.path=/data \
--web.console.libraries=/etc/prometheus/console_libraries \
--web.console.templates=/etc/prometheus/consoles \
--web.enable-lifecycle"
retention: 732d # Keep data for at least 2 year
persistentVolume:
# 100Gi filled up, and this is source of our billing data.
size: 512Gi
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/support/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ prometheus:
- /bin/sh
defaultFlagsOverride:
- -c
# If changing this, please also find wherever this has been copied to and change
# those as well as appropriate
- "rm -rvf /data/wal/* && \
exec /bin/prometheus \
--storage.tsdb.retention.time=366d \
Expand Down

0 comments on commit a5aece9

Please sign in to comment.