Skip to content

Commit b63bf96

Browse files
codesomegouthamve
authored andcommitted
Log when flushing all the chunks (#1905)
Signed-off-by: Ganesh Vernekar <[email protected]>
1 parent a32c3e1 commit b63bf96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/ingester/flush.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ var (
7676
// Flush triggers a flush of all the chunks and closes the flush queues.
7777
// Called from the Lifecycler as part of the ingester shutdown.
7878
func (i *Ingester) Flush() {
79+
level.Info(util.Logger).Log("msg", "starting to flush all the chunks")
7980
i.sweepUsers(true)
81+
level.Info(util.Logger).Log("msg", "flushing of chunks complete")
8082

8183
// Close the flush queues, to unblock waiting workers.
8284
for _, flushQueue := range i.flushQueues {
@@ -89,7 +91,9 @@ func (i *Ingester) Flush() {
8991
// FlushHandler triggers a flush of all in memory chunks. Mainly used for
9092
// local testing.
9193
func (i *Ingester) FlushHandler(w http.ResponseWriter, r *http.Request) {
94+
level.Info(util.Logger).Log("msg", "starting to flush all the chunks")
9295
i.sweepUsers(true)
96+
level.Info(util.Logger).Log("msg", "flushing of chunks complete")
9397
w.WriteHeader(http.StatusNoContent)
9498
}
9599

0 commit comments

Comments
 (0)