Changing storage.tsdb.retention on Docker Hub "prom/prometheus"

2,070 views
Skip to first unread message

Amir

unread,
Mar 21, 2018, 9:05:06 AM3/21/18
to Prometheus Users
Hi

I am using "prom/prometheus" from Docker Hub on Docker container via Qnap,

Data retention is set to the default 15d and I would like to extend it but it's not as straight forward as I had hoped I guess :)
  • How can I change the value of "storage.tsdb.retention" ?
  • Can it be changed on an existing container or only in creation phase ?
Thanks!

ha...@cimri.com

unread,
May 22, 2018, 2:55:17 AM5/22/18
to Prometheus Users
+1

21 Mart 2018 Çarşamba 16:05:06 UTC+3 tarihinde Amir yazdı:

Meier

unread,
Jun 6, 2018, 6:49:07 AM6/6/18
to Prometheus Users
You can make your own derivate image https://prometheus.io/docs/prometheus/latest/installation/#custom-image and change the CMD line in the Dockerfile
You will have to start a new container with your custom image.

Frank Wang

unread,
Jul 16, 2020, 12:23:52 AM7/16/20
to Prometheus Users
like this: https://gist.github.com/DeathPoem/7dcc877c85f6238d5e38f9be73e6edc3

在 2018年3月21日星期三 UTC+8下午9:05:06,Amir写道:
Reply all
Reply to author
Forward
0 new messages