Don't skip metrics during startup in aggregate phase (#4230)

This commit is contained in:
Piotr Popieluch
2018-06-06 01:30:53 +02:00
committed by Daniel Nelson
parent b8b139678e
commit 9a7b088839
2 changed files with 21 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
package models
import (
"log"
"time"
"github.com/influxdata/telegraf"
@@ -153,6 +154,7 @@ func (r *RunningAggregator) Run(
m.Time().After(r.periodEnd.Add(truncation).Add(r.Config.Delay)) {
// the metric is outside the current aggregation period, so
// skip it.
log.Printf("D! aggregator: metric \"%s\" is not in the current timewindow, skipping", m.Name())
continue
}
r.add(m)