Skip to content

Commit a0a70e9

Browse files
aknuds1juliusmh
andauthored
Update model/relabel/relabel.go
Co-authored-by: Julius Hinze <[email protected]>
1 parent 6348358 commit a0a70e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/relabel/relabel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
115115
c.Regex = MustNewRegexp("")
116116
}
117117
if c.MetricNameValidationScheme == model.UnsetValidation {
118-
c.MetricNameValidationScheme = model.UTF8Validation
118+
c.MetricNameValidationScheme = model.NameValidationScheme
119119
}
120120
return c.Validate()
121121
}

0 commit comments

Comments
 (0)