github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/util/validation/validate.go (about)

     1  package validation
     2  
     3  const (
     4  	// ErrQueryTooLong is used in chunk store, querier and query frontend.
     5  	ErrQueryTooLong = "the query time range exceeds the limit (query length: %s, limit: %s)"
     6  
     7  	// RateLimited is one of the values for the reason to discard samples.
     8  	// Declared here to avoid duplication in ingester and distributor.
     9  	RateLimited = "rate_limited"
    10  
    11  	// Too many HA clusters is one of the reasons for discarding samples.
    12  	TooManyHAClusters = "too_many_ha_clusters"
    13  
    14  	// DroppedByRelabelConfiguration Samples can also be discarded because of relabeling configuration
    15  	DroppedByRelabelConfiguration = "relabel_configuration"
    16  	// DroppedByUserConfigurationOverride Samples discarded due to user configuration removing label __name__
    17  	DroppedByUserConfigurationOverride = "user_label_removal_configuration"
    18  
    19  	// The combined length of the label names and values of an Exemplar's LabelSet MUST NOT exceed 128 UTF-8 characters
    20  	// https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exemplars
    21  	ExemplarMaxLabelSetLength = 128
    22  )