Skip to content

Commit

Permalink
Merge pull request #4631 from sgibson91/prometheus-retention-3-year
Browse files Browse the repository at this point in the history
Update prometheus retention period to 3 years
  • Loading branch information
sgibson91 authored Aug 16, 2024
2 parents 9fb6fc7 + b178a51 commit e4c17be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions config/clusters/2i2c/support.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ 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
4 changes: 2 additions & 2 deletions helm-charts/support/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ prometheus:
# those as well as appropriate
- "rm -rvf /data/wal/* && \
exec /bin/prometheus \
--storage.tsdb.retention.time=366d \
--storage.tsdb.retention.time=1098d \
--config.file=/etc/config/prometheus.yml \
--storage.tsdb.path=/data \
--web.console.libraries=/etc/prometheus/console_libraries \
Expand All @@ -179,7 +179,7 @@ prometheus:
extraFlags:
- web.enable-lifecycle
# retention MUST BE UPDATED in prometheus.server.defaultFlagsOverride as well
retention: 366d # Keep data for at least 1 year
retention: 1098d # Keep data for at least 3 years

ingress:
ingressClassName: nginx
Expand Down

0 comments on commit e4c17be

Please sign in to comment.