mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Log correct sample count when appending to disk.
This commit is contained in:
parent
de8757f925
commit
ba8c122147
|
@ -269,17 +269,17 @@ func (t *TieredStorage) flushMemory(ttl time.Duration) {
|
|||
|
||||
queueLength := len(t.appendToDiskQueue)
|
||||
if queueLength > 0 {
|
||||
log.Printf("Writing %d samples ...", queueLength)
|
||||
samples := model.Samples{}
|
||||
for i := 0; i < queueLength; i++ {
|
||||
chunk := <-t.appendToDiskQueue
|
||||
samples = append(samples, chunk...)
|
||||
}
|
||||
|
||||
log.Printf("Writing %d samples...", len(samples))
|
||||
t.DiskStorage.AppendSamples(samples)
|
||||
}
|
||||
|
||||
log.Println("Done flushing...")
|
||||
log.Println("Done flushing.")
|
||||
}
|
||||
|
||||
func (t *TieredStorage) Close() {
|
||||
|
|
Loading…
Reference in a new issue