Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…in the error message about -search.max* limit

Updates #4827
  • Loading branch information
valyala committed Aug 14, 2023
1 parent 1361239 commit bde876f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/vmstorage/servers/vmselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (api *vmstorageAPI) setupTfss(qt *querytracer.Tracer, sq *storage.SearchQue
}
if len(paths) >= maxMetrics {
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 at vmselect nodes", maxMetrics, query)
"either narrow down the query or increase the corresponding -search.max* command-line flag value at vmselect nodes; "+
"see https://docs.victoriametrics.com/#resource-usage-limits", maxMetrics, query)
}
tfs.AddGraphiteQuery(query, paths, tf.IsNegative)
continue
Expand Down
2 changes: 1 addition & 1 deletion lib/storage/index_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ func (is *indexSearch) updateMetricIDsForTagFilters(qt *querytracer.Tracer, metr
if err != nil {
if errors.Is(err, errFallbackToGlobalSearch) {
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
}
Expand Down

0 comments on commit bde876f

Please sign in to comment.