File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 76
76
// Flush triggers a flush of all the chunks and closes the flush queues.
77
77
// Called from the Lifecycler as part of the ingester shutdown.
78
78
func (i * Ingester ) Flush () {
79
+ level .Info (util .Logger ).Log ("msg" , "starting to flush all the chunks" )
79
80
i .sweepUsers (true )
81
+ level .Info (util .Logger ).Log ("msg" , "flushing of chunks complete" )
80
82
81
83
// Close the flush queues, to unblock waiting workers.
82
84
for _ , flushQueue := range i .flushQueues {
@@ -89,7 +91,9 @@ func (i *Ingester) Flush() {
89
91
// FlushHandler triggers a flush of all in memory chunks. Mainly used for
90
92
// local testing.
91
93
func (i * Ingester ) FlushHandler (w http.ResponseWriter , r * http.Request ) {
94
+ level .Info (util .Logger ).Log ("msg" , "starting to flush all the chunks" )
92
95
i .sweepUsers (true )
96
+ level .Info (util .Logger ).Log ("msg" , "flushing of chunks complete" )
93
97
w .WriteHeader (http .StatusNoContent )
94
98
}
95
99
You can’t perform that action at this time.
0 commit comments