Apply suggestion from @stigi
This commit is contained in:
parent
f38a224376
commit
715cd3dce8
1 changed files with 1 additions and 7 deletions
|
|
@ -201,13 +201,7 @@ services:
|
|||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.retention.time=15d"
|
||||
# Size-based retention is a disk-safety backstop, not the primary
|
||||
# policy (time=15d is). It counts the WAL toward the budget, so a
|
||||
# too-small cap makes Prometheus delete freshly-compacted blocks on
|
||||
# creation — which it did at 1GB, leaving only the ~2h head block
|
||||
# queryable (a stuck/corrupt WAL had bloated to 2.1GB). 6GB holds
|
||||
# ~15d of metrics at current cardinality with headroom; disk is 38G.
|
||||
- "--storage.tsdb.retention.size=6GB"
|
||||
- "--storage.tsdb.retention.size=2GB"
|
||||
|
||||
loki:
|
||||
image: grafana/loki:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue