Hello,
I'm running prometheus v2.17.2 in a docker container on windows
My .env file looks like :
# PROM_DATADIR=/home/dhenchoz/promdata
PROM_DATADIR=D/DOCKER_PERSISTENT/prometheus_data
PROM_RETENTION=1y
I've set a persitent volume on my windows PC, see docker-compose file :
volumes:
prometheus_data:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '${PROM_DATADIR}'
networks:
back-tier:
driver: bridge
front-tier:
driver: bridge
services:
prometheus:
image: prom/prometheus
container_name: prometheus
environment:
- TZ=Europe/Zurich
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=${PROM_RETENTION}'
- '--web.enable-lifecycle'
-
'--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- 9090
user: 1000:1000
networks:
- back-tier
restart: always
I can observe the following message in the log :
prometheus | level=info ts=2020-04-29T15:00:11.609Z caller=head.go:662
component=tsdb msg="head GC completed" duration=40.594801ms
prometheus | level=error ts=2020-04-29T15:00:12.430Z caller=db.go:659
component=tsdb msg="compaction failed" err="reload blocks: head truncate
failed: create checkpoint: rename checkpoint
directory: rename /prometheus/wal/checkpoint.000001.tmp
/prometheus/wal/checkpoint.000001: no such file or directory"
The files on the persistent volume are :
What's wrong ?
Thanks for the help !
Daniel
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/6599c115-87bf-4994-b0db-ee545911672e%40googlegroups.com.