Apply suggestion from @stigi

This commit is contained in:
Ullrich Schäfer 2026-06-09 12:17:54 +02:00 committed by GitHub
parent f38a224376
commit 715cd3dce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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