Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeLabelName ¶
SanitizeLabelName replaces anything that doesn't match client_label.LabelNameRE with an underscore.
This has been copied from Prometheus sources at util/strutil/strconv.go
Types ¶
type SortedLabels ¶
type SortedLabels []prompbmarshal.Label
SortedLabels represents sorted labels.
func GetSortedLabels ¶
func GetSortedLabels(m map[string]string) SortedLabels
GetSortedLabels returns SortedLabels built from m.
func (*SortedLabels) UnmarshalJSON ¶
func (sls *SortedLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals JSON from data.
Click to show internal directories.
Click to hide internal directories.