lib/streamaggr/streamaggr.go: fix link in error message (#5439)

This commit is contained in:
noodles2hg 2023-12-08 21:55:05 +08:00 committed by Aliaksandr Valialkin
parent f0215454b4
commit 91654c2c0d
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -303,7 +303,7 @@ func newAggregator(cfg *Config, pushFunc PushFunc, dedupInterval time.Duration)
// initialize outputs list // initialize outputs list
if len(cfg.Outputs) == 0 { if len(cfg.Outputs) == 0 {
return nil, fmt.Errorf("`outputs` list must contain at least a single entry from the list %s; "+ return nil, fmt.Errorf("`outputs` list must contain at least a single entry from the list %s; "+
"see https://docs.victoriametrics.com/vmagent.html#stream-aggregation", supportedOutputs) "see https://docs.victoriametrics.com/stream-aggregation.html", supportedOutputs)
} }
aggrStates := make([]aggrState, len(cfg.Outputs)) aggrStates := make([]aggrState, len(cfg.Outputs))
for i, output := range cfg.Outputs { for i, output := range cfg.Outputs {
@ -358,7 +358,7 @@ func newAggregator(cfg *Config, pushFunc PushFunc, dedupInterval time.Duration)
aggrStates[i] = newHistogramBucketAggrState(stalenessInterval) aggrStates[i] = newHistogramBucketAggrState(stalenessInterval)
default: default:
return nil, fmt.Errorf("unsupported output=%q; supported values: %s; "+ return nil, fmt.Errorf("unsupported output=%q; supported values: %s; "+
"see https://docs.victoriametrics.com/vmagent.html#stream-aggregation", output, supportedOutputs) "see https://docs.victoriametrics.com/stream-aggregation.html", output, supportedOutputs)
} }
} }