Hi, The flag "--storage.tsdb.retention=20d" should definitely work (although "--storage.tsdb.retention.time=20d" is preferred nowadays). If the /status page still says "15d", are you sure you restarted the right Prometheus server?
Long startup times come from write-ahead-log (WAL) replay. There have been improvements to the WAL size recently, so maybe also try the latest Prometheus version to get startup times lowered. Cheers, Julius On Mon, Jul 13, 2020 at 11:01 AM Bhupendra kumar <[email protected]> wrote: > Hi All, > > I want to know how to change Storage Retention in prometheus, And I am > already tried with this command ( prometheus --storage.tsdb.retention=20d ) > but still not working. > So please give me a solution for this so that prometheus working fine, And > also when i need to restart prometheus server then prometheus very slowly > start so to do any change is required for this. > > Prometheus version. > > [root@server prometheus]# prometheus --version > prometheus, version 2.17.1 (branch: HEAD, revision: > ae041f97cfc6f43494bed65ec4ea4e3a0cf2ac69) > build user: root@806b02dfe114 > build date: 20200326-16:18:19 > go version: go1.13.9 > > > -- > 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/e336cb8c-2789-47f9-8e20-e4828ab123d8o%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/e336cb8c-2789-47f9-8e20-e4828ab123d8o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Julius Volz PromLabs - promlabs.com -- 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/CAObpH5zxjotybbcmxqS3TB8EfCs%3D-RdKcYav%2Bf91wcwhnqWDZQ%40mail.gmail.com.

