Prometheus默认存储保留时间

Prometheus默认存储保留时间

我像附加的那样将 Prometheus (v.2.51.2) 作为容器启动,并期望标志“storage.tsdb.retention.time”默认设置为“15d”,但它的默认值是“0s”,意思是无限。这是什么原因造成的?

docker run -d \
--name=prometheus \
-p 9090:9090 \
-v ./prometheus.yml:/etc/prometheus/prometheus.yml \
-v prometheus-data:/prometheus \
prom/prometheus

相关内容