Browse Source

Merge pull request #13772 from machine424/signals

adjust signal termination warning log
pull/13776/head
Björn Rabenstein 8 months ago committed by GitHub
parent
commit
0f70fc7687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      cmd/prometheus/main.go

4
cmd/prometheus/main.go

@ -960,8 +960,8 @@ func main() {
func() error {
// Don't forget to release the reloadReady channel so that waiting blocks can exit normally.
select {
case <-term:
level.Warn(logger).Log("msg", "Received SIGTERM, exiting gracefully...")
case sig := <-term:
level.Warn(logger).Log("msg", "Received an OS signal, exiting gracefully...", "signal", sig.String())
reloadReady.Close()
case <-webHandler.Quit():
level.Warn(logger).Log("msg", "Received termination request via web service, exiting gracefully...")

Loading…
Cancel
Save