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 e23af8f05c
commit 3167fbc21d
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -2212,7 +2212,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