Add LabelName regular expression

This commit is contained in:
Fabian Reinartz 2015-05-20 16:16:40 +02:00
parent b2b3dad248
commit bb07c54a58
1 changed files with 2 additions and 0 deletions

View File

@ -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