From 1c68dacb3938e1c125c6e297e06c319be796f607 Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Mon, 3 Feb 2025 11:17:54 +0800 Subject: [PATCH] prometheus: prepare for thanos --- monitoring/prometheus/deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitoring/prometheus/deployment.yaml b/monitoring/prometheus/deployment.yaml index ac27921..ccb6d75 100644 --- a/monitoring/prometheus/deployment.yaml +++ b/monitoring/prometheus/deployment.yaml @@ -11,6 +11,13 @@ spec: containers: - name: prometheus image: quay.io/prometheus/prometheus:v3.1.0 + args: + - --config.file=/etc/prometheus/prometheus.yml + - --storage.tsdb.path=/prometheus + - --storage.tsdb.retention.time=1w + # leave compaction to thanos + - --storage.tsdb.min-block-duration=2h + - --storage.tsdb.max-block-duration=2h volumeMounts: - name: configs mountPath: /etc/prometheus -- 2.45.2