mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/streamaggr: allow one second aggregation interval
This commit is contained in:
parent
18db573b10
commit
eb8e95516f
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ func newAggregator(cfg *Config, pushFunc PushFunc, dedupInterval time.Duration)
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot parse `interval: %q`: %w", cfg.Interval, err)
|
||||
}
|
||||
if interval <= time.Second {
|
||||
return nil, fmt.Errorf("aggregation interval should be higher than 1s; got %s", interval)
|
||||
if interval < time.Second {
|
||||
return nil, fmt.Errorf("aggregation interval cannot be smaller than 1s; got %s", interval)
|
||||
}
|
||||
|
||||
// check cfg.StalenessInterval
|
||||
|
|
Loading…
Reference in a new issue