Merge pull request #125 from prometheus/fabxc/yaml

Add LabelName regular expression
This commit is contained in:
Björn Rabenstein 2015-05-20 16:18:08 +02:00
commit 438d8aefa8
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