When I changed the “–storage.tsdb.retention.time” parameter to 180d, I noticed that my history was lost, so I went back to default to view my data history again.
We have Prometheus in a docker container and these parameters are configured in the Dockerfile. The flag was changed, but I didn’t want my data history to be lost.
Do we have a solution for this?
I’m using the prometheus volume location pattern in my staging environment (/var/lib/docker/volumes/prometheus/_data) and this issue also occurs there.
This action of changing this flag created a second directory of data under the default directory, and when I reverted to the default settings this data was back stored in the default location again.