Skip to content

Commit 755a40d

Browse files
committed
quoting in descriptors
Signed-off-by: Owen Williams <[email protected]>
1 parent 058b6fa commit 755a40d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/specs/om/open_metrics_spec_1_1.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ metricset = *metricfamily
316316
317317
metricfamily = *metric-descriptor *metric
318318
319-
metric-descriptor = HASH SP type SP metricname SP metric-type LF
320-
metric-descriptor =/ HASH SP help SP metricname SP escaped-string LF
321-
metric-descriptor =/ HASH SP unit SP metricname SP *metricname-char LF
319+
metric-descriptor = HASH SP type SP (metricname / metricname-utf8) SP metric-type LF
320+
metric-descriptor =/ HASH SP help SP (metricname / metricname-utf8) SP escaped-string LF
321+
metric-descriptor =/ HASH SP unit SP (metricname / metricname-utf8) SP *metricname-char LF
322322
323323
metric = *sample
324324
@@ -436,6 +436,8 @@ A double backslash SHOULD be used to represent a backslash character.
436436
A single backslash SHOULD NOT be used for undefined escape sequences.
437437
As an example, `\\\\a` is equivalent and preferable to `\\a`.
438438

439+
Escaping MUST also be applied to quoted UTF-8 strings.
440+
439441
##### Numbers
440442

441443
Integer numbers MUST NOT have a decimal point. Examples are `23`, `0042`, and `1341298465647914`.

0 commit comments

Comments
 (0)