Versions in this module Expand all Collapse all v0 v0.4.0 Oct 26, 2019 Changes in this version + const RateLimited + var DiscardedSamples = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + type Limits struct + CardinalityLimit int + CreationGracePeriod time.Duration + EnforceMetricName bool + IngestionBurstSize float64 + IngestionRate float64 + MaxChunksPerQuery int + MaxLabelNameLength int + MaxLabelNamesPerSeries int + MaxLabelValueLength int + MaxQueryLength time.Duration + MaxQueryParallelism int + MaxStreamsMatchersPerQuery int + MaxStreamsPerUser int + PerTenantOverrideConfig string + PerTenantOverridePeriod time.Duration + RejectOldSamples bool + RejectOldSamplesMaxAge time.Duration + func (l *Limits) RegisterFlags(f *flag.FlagSet) + func (l *Limits) UnmarshalYAML(unmarshal func(interface{}) error) error + type Overrides struct + func NewOverrides(defaults Limits) (*Overrides, error) + func (o *Overrides) CardinalityLimit(userID string) int + func (o *Overrides) CreationGracePeriod(userID string) time.Duration + func (o *Overrides) EnforceMetricName(userID string) bool + func (o *Overrides) IngestionBurstSize(userID string) float64 + func (o *Overrides) IngestionRate(userID string) float64 + func (o *Overrides) MaxChunksPerQuery(userID string) int + func (o *Overrides) MaxLabelNameLength(userID string) int + func (o *Overrides) MaxLabelNamesPerSeries(userID string) int + func (o *Overrides) MaxLabelValueLength(userID string) int + func (o *Overrides) MaxQueryLength(userID string) time.Duration + func (o *Overrides) MaxQueryParallelism(userID string) int + func (o *Overrides) MaxStreamsMatchersPerQuery(userID string) int + func (o *Overrides) MaxStreamsPerUser(userID string) int + func (o *Overrides) RejectOldSamples(userID string) bool + func (o *Overrides) RejectOldSamplesMaxAge(userID string) time.Duration + func (o *Overrides) Stop()