timeserieslimits

package
v1.108.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled returns true if any of limits is configured

func Init

func Init(inputMaxLabelsPerTimeseries, inputMaxLabelNameLen, inputMaxLabelValueLen int)

Init prepares package for usage

func IsExceeding

func IsExceeding(labels []prompbmarshal.Label) bool

IsExceeding checks if passed labels exceed one of the limits: * Maximum allowed labels limit * Maximum allowed label name length limit * Maximum allowed label value length limit

increments metrics and shows warning in logs

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL