all: refer to https://docs.victoriametrics.com/#resource-usage-limits in the error message about -search.max* limit

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4827
This commit is contained in:
Aliaksandr Valialkin 2023-08-14 01:57:31 -07:00
parent a0f695f5de
commit ac6c40e896
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
2 changed files with 3 additions and 2 deletions

View File

@ -1243,7 +1243,8 @@ func setupTfss(qt *querytracer.Tracer, tr storage.TimeRange, tagFilterss [][]sto
} }
if len(paths) >= maxMetrics { if len(paths) >= maxMetrics {
return nil, fmt.Errorf("more than %d time series match Graphite query %q; "+ return nil, fmt.Errorf("more than %d time series match Graphite query %q; "+
"either narrow down the query or increase the corresponding -search.max* command-line flag value", maxMetrics, query) "either narrow down the query or increase the corresponding -search.max* command-line flag value; "+
"see see https://docs.victoriametrics.com/#resource-usage-limits", maxMetrics, query)
} }
tfs.AddGraphiteQuery(query, paths, tf.IsNegative) tfs.AddGraphiteQuery(query, paths, tf.IsNegative)
continue continue

View File

@ -2216,7 +2216,7 @@ func (is *indexSearch) updateMetricIDsForTagFilters(qt *querytracer.Tracer, metr
if err != nil { if err != nil {
if errors.Is(err, errFallbackToGlobalSearch) { if errors.Is(err, errFallbackToGlobalSearch) {
return fmt.Errorf("the number of matching timeseries exceeds %d; either narrow down the search "+ return fmt.Errorf("the number of matching timeseries exceeds %d; either narrow down the search "+
"or increase -search.max* command-line flag values at vmselect", maxMetrics) "or increase -search.max* command-line flag values at vmselect; see https://docs.victoriametrics.com/#resource-usage-limits", maxMetrics)
} }
return err return err
} }