How to Increase Prometheus Storage Retention Time -running prometheus docker container #11850
Replies: 3 comments 2 replies
-
The storage retention time for Prometheus can be set using a command line flag when starting the Prometheus container. To set the storage retention time to 30 days, you would use the
|
Beta Was this translation helpful? Give feedback.
-
any update? |
Beta Was this translation helpful? Give feedback.
-
Posting here in case it helps someone.... I was also struggling with an updated retention flag. The original script would work:
But appending the flag
For some reason, the container was now looking in the wrong place for the config Solution:I updated the script again to set command line flags for the config file and data paths; everyhing is working fine, with the correct retention period and paths shown in
|
Beta Was this translation helpful? Give feedback.
-
Hi,
How to Increase Prometheus Storage Retention Time running prometheus docker container? I don't use config and cmd in docker just i run this "docker run -d --name prometheus -p 9090:9090 -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus".
So please let me know how to i change storage retention in running docker container.
Regards,
Vinoth
Beta Was this translation helpful? Give feedback.
All reactions