MCPcopy Create free account
hub / github.com/cortexproject/cortex / formatMaxSeriesPerUserError

Method formatMaxSeriesPerUserError

pkg/ingester/limiter.go:165–172  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

163}
164
165func (l *Limiter) formatMaxSeriesPerUserError(userID string) error {
166 actualLimit := l.maxSeriesPerUser(userID)
167 localLimit := l.limits.MaxLocalSeriesPerUser(userID)
168 globalLimit := l.limits.MaxGlobalSeriesPerUser(userID)
169
170 return fmt.Errorf("per-user series limit of %d exceeded, %s (local limit: %d global limit: %d actual local limit: %d)",
171 minNonZero(localLimit, globalLimit), l.AdminLimitMessage, localLimit, globalLimit, actualLimit)
172}
173
174func (l *Limiter) formatMaxNativeHistogramsSeriesPerUserError(userID string) error {
175 actualLimit := l.maxNativeHistogramSeriesPerUser(userID)

Callers 1

FormatErrorMethod · 0.95

Calls 4

maxSeriesPerUserMethod · 0.95
minNonZeroFunction · 0.85
MaxLocalSeriesPerUserMethod · 0.80

Tested by

no test coverage detected