mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/streamaggr: allow one second aggregation interval
This commit is contained in:
parent
7533070a52
commit
31f0dc4b97
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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("cannot parse `interval: %q`: %w", cfg.Interval, err)
|
return nil, fmt.Errorf("cannot parse `interval: %q`: %w", cfg.Interval, err)
|
||||||
}
|
}
|
||||||
if interval <= time.Second {
|
if interval < time.Second {
|
||||||
return nil, fmt.Errorf("aggregation interval should be higher than 1s; got %s", interval)
|
return nil, fmt.Errorf("aggregation interval cannot be smaller than 1s; got %s", interval)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check cfg.StalenessInterval
|
// check cfg.StalenessInterval
|
||||||
|
|
Loading…
Reference in a new issue