forked from mirror/client_golang
Add LabelName regular expression
This commit is contained in:
parent
b2b3dad248
commit
bb07c54a58
|
@ -61,6 +61,8 @@ const (
|
|||
QuantileLabel = "quantile"
|
||||
)
|
||||
|
||||
var labelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$")
|
||||
|
||||
// A LabelName is a key for a LabelSet or Metric. It has a value associated
|
||||
// therewith.
|
||||
type LabelName string
|
||||
|
|
Loading…
Reference in New Issue