lib/storage: improve error message when -search.max* command-line flag values are exceeded

This commit is contained in:
Aliaksandr Valialkin 2022-06-14 13:23:23 +03:00
parent 97183e4ec5
commit a75e59700f
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -2186,7 +2186,7 @@ func (is *indexSearch) searchMetricIDsInternal(qt *querytracer.Tracer, tfss []*T
}
if metricIDs.Len() > maxMetrics {
return nil, 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 metricIDs, nil