Browse Source

reduced prometheus retention limit and size

xcad 11 tháng trước cách đây
mục cha
commit
b0f22f5bf4
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      docker-compose/prometheus/compose.yaml

+ 4 - 1
docker-compose/prometheus/compose.yaml

@@ -6,9 +6,12 @@ services:
   prometheus:
     image: docker.io/prom/prometheus:v3.4.2
     container_name: prometheus
+    command:
+      - --config.file=/etc/prometheus/prometheus.yaml
+      - --storage.tsdb.retention.time=7d
+      - --storage.tsdb.retention.size=2GB
     ports:
       - 9090:9090
-    command: "--config.file=/etc/prometheus/prometheus.yaml"
     volumes:
       - ./config/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro
       - prometheus-data:/prometheus