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

Method MaxExemplars

pkg/util/validation/limits.go:1035–1037  ·  view source on GitHub ↗

MaxExemplars gets the maximum number of exemplars that will be stored per user. 0 or less means disabled.

(userID string)

Source from the content-addressed store, hash-verified

1033
1034// MaxExemplars gets the maximum number of exemplars that will be stored per user. 0 or less means disabled.
1035func (o *Overrides) MaxExemplars(userID string) int {
1036 return o.GetOverridesForUser(userID).MaxExemplars
1037}
1038
1039// Notification limits are special. Limits are returned in following order:
1040// 1. per-tenant limits for given integration

Callers 2

getMaxExemplarsMethod · 0.80

Calls 1

GetOverridesForUserMethod · 0.95

Tested by 1