mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 23:19:41 -08:00
better mode setting
This commit is contained in:
parent
f6bc568d8b
commit
3911f6109b
|
@ -301,9 +301,10 @@ foo_total 17.0 1520879607.789 # {id="counter-test"} 5`
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUTF8OpenMetricsParse(t *testing.T) {
|
func TestUTF8OpenMetricsParse(t *testing.T) {
|
||||||
|
oldValidationScheme := model.NameValidationScheme
|
||||||
model.NameValidationScheme = model.UTF8Validation
|
model.NameValidationScheme = model.UTF8Validation
|
||||||
defer func() {
|
defer func() {
|
||||||
model.NameValidationScheme = model.LegacyValidation
|
model.NameValidationScheme = oldValidationScheme
|
||||||
}()
|
}()
|
||||||
|
|
||||||
input := `# HELP "go.gc_duration_seconds" A summary of the GC invocation durations.
|
input := `# HELP "go.gc_duration_seconds" A summary of the GC invocation durations.
|
||||||
|
|
|
@ -219,9 +219,10 @@ testmetric{label="\"bar\""} 1`
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestUTF8PromParse(t *testing.T) {
|
func TestUTF8PromParse(t *testing.T) {
|
||||||
|
oldValidationScheme := model.NameValidationScheme
|
||||||
model.NameValidationScheme = model.UTF8Validation
|
model.NameValidationScheme = model.UTF8Validation
|
||||||
defer func() {
|
defer func() {
|
||||||
model.NameValidationScheme = model.LegacyValidation
|
model.NameValidationScheme = oldValidationScheme
|
||||||
}()
|
}()
|
||||||
|
|
||||||
input := `# HELP "go.gc_duration_seconds" A summary of the GC invocation durations.
|
input := `# HELP "go.gc_duration_seconds" A summary of the GC invocation durations.
|
||||||
|
|
Loading…
Reference in a new issue