Kompression angeschaltet in compose

This commit is contained in:
2025-12-28 16:52:53 +01:00
parent 30a9ce00cf
commit d364d6df3d
2 changed files with 10 additions and 11 deletions
+8 -9
View File
@@ -4,27 +4,26 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
memory: 256M memory: 512M
ports: ports:
- 9090:9090 - 9090:9090
volumes: volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml - ./prometheus.yml:/etc/prometheus/prometheus.yml
- /prometheus/:/prometheus - /timeseries/prometheus/:/prometheus
command: command:
- '--config.file=/etc/prometheus/prometheus.yml' - --config.file=/etc/prometheus/prometheus.yml
- '--storage.tsdb.path=/prometheus' - --storage.tsdb.path=/prometheus
- '--storage.tsdb.retention.time=7200d' - --storage.tsdb.retention.time=7200d
- '--storage.tsdb.retention.size=0' - --storage.tsdb.retention.size=0
- --storage.tsdb.wal-compression
image: prom/prometheus image: prom/prometheus
restart: unless-stopped restart: unless-stopped
pve-exporter: pve-exporter:
image: prompve/prometheus-pve-exporter:latest image: prompve/prometheus-pve-exporter:latest
container_name: prometheus-pve-exporter container_name: prometheus-pve-exporter
ports: ports:
- "9221:9221" - 9221:9221
volumes: volumes:
- /opt/prometheus/pve.yml:/etc/prometheus/pve.yml:ro - /opt/prometheus/pve.yml:/etc/prometheus/pve.yml:ro
restart: unless-stopped restart: unless-stopped
networks: {} networks: {}
+2 -2
View File
@@ -1,8 +1,8 @@
# Sample config for Prometheus. # Sample config for Prometheus.
global: global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. scrape_interval: 120s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. evaluation_interval: 60s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout: 30s # is set to the global default (10s). # scrape_timeout: 30s # is set to the global default (10s).
# Attach these labels to any time series or alerts when communicating with # Attach these labels to any time series or alerts when communicating with