timescale / prometheus-postgresql-adapter

Use PostgreSQL as a remote storage database for Prometheus
Apache License 2.0
336 stars 66 forks source link

prometheus-postgresql-adapter crashes on prometheus reload #107

Closed vma closed 4 years ago

vma commented 4 years ago

When I reload prometheus with kill -HUP, the adapter crashes with "Hangup" as last message:

[...]
{"caller":"log.go:31","level":"info","msg":"Starting up...","ts":"2020-02-28T16:38:10.543Z"}                                                                                      
{"addr":":9201","caller":"log.go:31","level":"info","msg":"Listening","ts":"2020-02-28T16:38:10.543Z"}                                                                            
{"caller":"log.go:27","count":3304,"duration":0.215606948,"level":"debug","msg":"Wrote samples","ts":"2020-02-28T16:38:10.812Z"}                                                  
Hangup

Edit: I am using latest master 7b6d240 version

vma commented 4 years ago

My bad, I was using pkill -HUP prometheus for the reload. So it sent hup signal to all processes whose name contained prometheus.

I have added -x flag and it works better :)