Storage: Tell users how to avoid crash recovery.
If users see the crash recovery error, the chances are they aren't shutting down Prometheus correctly. Telling them how to do so will help them debug and fix the problem.
This commit is contained in:
parent
b5861b02ac
commit
0ec71442cd
|
@ -37,6 +37,7 @@ import (
|
|||
func (p *persistence) recoverFromCrash(fingerprintToSeries map[clientmodel.Fingerprint]*memorySeries) error {
|
||||
// TODO(beorn): We need proper tests for the crash recovery.
|
||||
log.Warn("Starting crash recovery. Prometheus is inoperational until complete.")
|
||||
log.Warn("To avoid crash recovery in future, shutdown Prometheus with SIGTERM or a HTTP POST to /-/quit.")
|
||||
|
||||
fpsSeen := map[clientmodel.Fingerprint]struct{}{}
|
||||
count := 0
|
||||
|
|
Loading…
Reference in New Issue