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

Method formatMaxMetadataPerUserError

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

Source from the content-addressed store, hash-verified

190}
191
192func (l *Limiter) formatMaxMetadataPerUserError(userID string) error {
193 actualLimit := l.maxMetadataPerUser(userID)
194 localLimit := l.limits.MaxLocalMetricsWithMetadataPerUser(userID)
195 globalLimit := l.limits.MaxGlobalMetricsWithMetadataPerUser(userID)
196
197 return fmt.Errorf("per-user metric metadata limit of %d exceeded, %s (local limit: %d global limit: %d actual local limit: %d)",
198 minNonZero(localLimit, globalLimit), l.AdminLimitMessage, localLimit, globalLimit, actualLimit)
199}
200
201func (l *Limiter) formatMaxMetadataPerMetricError(userID string, metric string) error {
202 actualLimit := l.maxMetadataPerMetric(userID)

Callers 1

FormatErrorMethod · 0.95

Calls 4

maxMetadataPerUserMethod · 0.95
minNonZeroFunction · 0.85

Tested by

no test coverage detected