Skip to content

Commit

Permalink
Merge pull request #2778 from yuvipanda/prom-short
Browse files Browse the repository at this point in the history
Reduce prometheus dataloss during restarts to 5m from 10m
  • Loading branch information
yuvipanda authored Jul 7, 2023
2 parents e4425ca + c3ba987 commit 0a33996
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helm-charts/support/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ prometheus:
--web.console.libraries=/etc/prometheus/console_libraries \
--web.console.templates=/etc/prometheus/consoles \
--web.enable-lifecycle \
--storage.tsdb.min-block-duration=10m \
--storage.tsdb.max-block-duration=10m"
--storage.tsdb.min-block-duration=5m \
--storage.tsdb.max-block-duration=5m"
# extraFlags MUST BE UPDATED in prometheus.server.defaultFlagsOverride as well
extraFlags:
- web.enable-lifecycle
Expand All @@ -193,8 +193,8 @@ prometheus:
#
# ref: https://github.com/prometheus/prometheus/issues/6934#issuecomment-1099293120
#
- storage.tsdb.min-block-duration=10m
- storage.tsdb.max-block-duration=10m
- storage.tsdb.min-block-duration=5m
- storage.tsdb.max-block-duration=5m
# retention MUST BE UPDATED in prometheus.server.defaultFlagsOverride as well
retention: 366d # Keep data for at least 1 year

Expand Down

0 comments on commit 0a33996

Please sign in to comment.