Versions in this module Expand all Collapse all v0 v0.0.2 Oct 27, 2022 Changes in this version + const AddressLabel + const AlertNameLabel + const BucketLabel + const ExportedLabelPrefix + const InstanceLabel + const JobLabel + const MetaLabelPrefix + const MetricNameLabel + const MetricsPathLabel + const ParamLabelPrefix + const QuantileLabel + const ReservedLabelPrefix + const SchemeLabel + const SeparatorByte + const TmpLabelPrefix + var LabelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$") + var MetricNameRE = regexp.MustCompile(`^[a-zA-Z_:][a-zA-Z0-9_:]*$`) + func IsValidMetricName(n LabelValue) bool + func LabelsToSignature(labels map[string]string) uint64 + func SignatureForLabels(m Metric, labels ...LabelName) uint64 + func SignatureWithoutLabels(m Metric, labels map[LabelName]struct{}) uint64 + type Fingerprint uint64 + func FingerprintFromString(s string) (Fingerprint, error) + func ParseFingerprint(s string) (Fingerprint, error) + func (f Fingerprint) String() string + type FingerprintSet map[Fingerprint]struct + func (s FingerprintSet) Equal(o FingerprintSet) bool + func (s FingerprintSet) Intersection(o FingerprintSet) FingerprintSet + type Fingerprints []Fingerprint + func (f Fingerprints) Len() int + func (f Fingerprints) Less(i, j int) bool + func (f Fingerprints) Swap(i, j int) + type LabelName string + func (ln *LabelName) UnmarshalJSON(b []byte) error + func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error + func (ln LabelName) IsValid() bool + type LabelNames []LabelName + func (l LabelNames) Len() int + func (l LabelNames) Less(i, j int) bool + func (l LabelNames) String() string + func (l LabelNames) Swap(i, j int) + type LabelPair struct + Name LabelName + Value LabelValue + type LabelPairs []*LabelPair + func (l LabelPairs) Len() int + func (l LabelPairs) Less(i, j int) bool + func (l LabelPairs) Swap(i, j int) + type LabelSet map[LabelName]LabelValue + func (l *LabelSet) UnmarshalJSON(b []byte) error + func (l LabelSet) Merge(other LabelSet) LabelSet + func (l LabelSet) String() string + func (ls LabelSet) Before(o LabelSet) bool + func (ls LabelSet) Clone() LabelSet + func (ls LabelSet) Equal(o LabelSet) bool + func (ls LabelSet) FastFingerprint() Fingerprint + func (ls LabelSet) Fingerprint() Fingerprint + func (ls LabelSet) Validate() error + type LabelValue string + func (lv LabelValue) IsValid() bool + type LabelValues []LabelValue + func (l LabelValues) Len() int + func (l LabelValues) Less(i, j int) bool + func (l LabelValues) Swap(i, j int) + type Metric LabelSet + func (m Metric) Before(o Metric) bool + func (m Metric) Clone() Metric + func (m Metric) Equal(o Metric) bool + func (m Metric) FastFingerprint() Fingerprint + func (m Metric) Fingerprint() Fingerprint + func (m Metric) String() string