Hi, After making any changes in prometheus yaml file, no need to restart the service everytime. You can reload the service using below two methods.
1> You can use postman tool to smoothly reload the service using api. In that case you have to restart the prometheus service with --web.enable-lifecycle parameter. 2> You can reload the service using command line argument. curl --location --request POST 'http://server-IP:Portno./-/reload' Hope this helps. Thanks Rahul Hada On Mon, Mar 16, 2020 at 11:49 AM rs vas <[email protected]> wrote: > And Prometheus is running on version: 2.13.0. > > On Sun, Mar 15, 2020 at 10:58 PM rs vas <[email protected]> wrote: > >> Hello, Whenever we try to restart the Prometheus service, we are facing >> some issues and Service is not starting... >> >> *Issue1*: It is complaining about time ranges overlap after restart and >> not starting, after deleting the directories named with uuid, service is >> started successfully. >> level=error ts=2020-03-16T05:46:32.648Z caller=main.go:736 err="opening >> storage failed: invalid block sequence: block time ranges overlap: [mint: >> 1584151200000, maxt: 1584158400000, range: 2h0m0s, blocks: 5]: <ulid: >> 01E3BPKK6345WJCJBDJ6MD54X1, mint: 1584151200000, maxt: 1584158400000, >> range: 2h0m0s>, <ulid: 01E3BPKSQ14ZX63XP7GNMYF9PB, mint: 1584151200000, >> maxt: 1584158400000, range: 2h0m0s>, <ulid: 01E3BPPBV6Q1M7VQTWC0A16BMR, >> mint: 1584151200000, maxt: 1584158400000, range: 2h0m0s>, <ulid: >> 01E3CCXVM5J72658E3YDK9WGZ8, mint: 1584151200000, maxt: 1584158400000, >> range: 2h0m0s>, <ulid: 01E3D099N14KRHFF5XA2H6J2A8, mint: 1584151200000, >> maxt: 1584158400000, range: 2h0m0s>" >> >> *Issue2*:It is complaining about meta.json not found, and after deleting >> those directory, started fine. >> level=error ts=2020-03-14T09:02:29.497Z caller=db.go:604 component=tsdb >> msg="compaction failed" err="plan compaction: open >> /v../l../prometheus/01E3C4BBFR0VCQWZDPGJMAT2NB/meta.json: no such file or >> directory" >> >> *Issue3: *We have got luck but no issues on restart, then it is taking >> few min to start the service, as it taking time on below process... WAL >> segment loaded.... >> level=info ts=2020-03-16T05:50:21.522Z caller=head.go:560 component=tsdb >> msg="WAL segment loaded" segment=405 maxSegment=534 >> level=info ts=2020-03-16T05:50:23.005Z caller=head.go:560 component=tsdb >> msg="WAL segment loaded" segment=406 maxSegment=534 >> level=info ts=2020-03-16T05:50:24.612Z caller=head.go:560 component=tsdb >> msg="WAL segment loaded" segment=407 maxSegment=534 >> level=info ts=2020-03-16T05:50:26.104Z caller=head.go:560 component=tsdb >> msg="WAL segment loaded" segment=408 maxSegment=534 >> >> Prometheus is running as systemd, and trying to restart service as >> "systemctl restart prometheus.service" >> >> Any help or input is appreciated. >> > -- > 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/CAPs_AfhF%3DR7_jCuCkJR4xaASgv1VBG5k1Kr%2BGynbj%2BziojGd1g%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CAPs_AfhF%3DR7_jCuCkJR4xaASgv1VBG5k1Kr%2BGynbj%2BziojGd1g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAB2QzvofD59bkO46mMffkRgtJf3fnkjUU9m%2B6hqueNOxt9PxuA%40mail.gmail.com.

