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

Method maxMetadataPerUser

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

Source from the content-addressed store, hash-verified

279}
280
281func (l *Limiter) maxMetadataPerUser(userID string) int {
282 return l.maxByLocalAndGlobal(
283 userID,
284 l.limits.MaxLocalMetricsWithMetadataPerUser,
285 l.limits.MaxGlobalMetricsWithMetadataPerUser,
286 )
287}
288
289func (l *Limiter) maxByLocalAndGlobal(userID string, localLimitFn, globalLimitFn func(string) int) int {
290 localLimit := localLimitFn(userID)

Calls 1

maxByLocalAndGlobalMethod · 0.95

Tested by 1