app/vmselect: simplify wording for too many samples error (#5827)

(cherry picked from commit 17cf031fa1)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Dan Dascalescu 2024-02-20 16:26:38 +01:00 committed by hagen1778
parent 2e172b9361
commit 0c7eda7c88
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640

View File

@ -1681,8 +1681,8 @@ func ProcessSearchQuery(qt *querytracer.Tracer, denyPartialResponse bool, sq *st
if *maxSamplesPerQuery > 0 && n > maxSamplesPerWorker && samples.GetTotal() > uint64(*maxSamplesPerQuery) {
return &limitExceededErr{
err: fmt.Errorf("cannot select more than -search.maxSamplesPerQuery=%d samples; possible solutions: "+
"to increase the -search.maxSamplesPerQuery; to reduce time range for the query; "+
"to use more specific label filters in order to select lower number of series", *maxSamplesPerQuery),
"increase the -search.maxSamplesPerQuery; reduce time range for the query; "+
"use more specific label filters in order to select fewer series", *maxSamplesPerQuery),
}
}
if err := tbfw.RegisterAndWriteBlock(mb, workerID); err != nil {