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:
Brian Brazil 2015-08-16 10:42:31 +01:00
parent b5861b02ac
commit 0ec71442cd
1 changed files with 1 additions and 0 deletions

View File

@ -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