diff --git a/docs/specs/om/open_metrics_spec_2_0.md b/docs/specs/om/open_metrics_spec_2_0.md index 3ac1b99cd..4a1030b45 100644 --- a/docs/specs/om/open_metrics_spec_2_0.md +++ b/docs/specs/om/open_metrics_spec_2_0.md @@ -683,6 +683,17 @@ There MUST NOT be an explicit separator between MetricFamilies. The next MetricF MetricFamilies MUST NOT be interleaved. +The same MetricFamily's Name and Metric's Name SHOULD have the same quoting. + +An example that would violate this: + +```openmetrics-add-eof +# TYPE "read_errors" counter +# HELP read_errors The number of errors in the read path for fooDb. +{"read_errors","service.name"="my_service"} 3482 +read_errors{"service.name"="my_service2"} 123 +``` + #### MetricFamily metadata There are four pieces of metadata: The MetricFamily name, TYPE, UNIT and HELP. An example of the metadata for a counter Metric called `foo_total` is: