This commit is contained in:
nyyu 2023-06-24 12:45:07 +02:00
parent 07e37804e7
commit 4292d1f795

View file

@ -8,7 +8,7 @@ networks:
services: services:
grafana: grafana:
image: grafana/grafana:9.5.2 image: grafana/grafana:9.5.5
container_name: grafana container_name: grafana
restart: unless-stopped restart: unless-stopped
volumes: volumes:
@ -28,7 +28,7 @@ services:
- "traefik.http.routers.grafana.rule=Host(`grafana.${HOST_SUFFIX}`)" - "traefik.http.routers.grafana.rule=Host(`grafana.${HOST_SUFFIX}`)"
- "traefik.http.routers.grafana.entrypoints=web" - "traefik.http.routers.grafana.entrypoints=web"
prometheus: prometheus:
image: prom/prometheus:v2.44.0 image: prom/prometheus:v2.45.0
container_name: prometheus container_name: prometheus
restart: unless-stopped restart: unless-stopped
volumes: volumes:
@ -39,6 +39,7 @@ services:
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=1y'
- '--web.console.libraries=/etc/prometheus/console_libraries' - '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles' - '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle' - '--web.enable-lifecycle'