Skip to content

Commit db57788

Browse files
committed
fix(om2.0): abnf consistent with model
Follow up to #2894 Let the metric be name and labels AND sample. Also fix a typo picked up by Claude. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
1 parent 0dcc18e commit db57788

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/specs/om/open_metrics_spec_2_0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ GaugeHistograms measure current distributions. Common examples are how long item
341341

342342
A GaugeHistogram Sample MUST contain Gcount, Gsum values.
343343

344-
The GCount value MUST be equal to the number of measurements currently in the GaugeHistogram. The GCount is a gauge semantically. The GCount SHOULD be and integer. The GCount SHOULD NOT be -Inf, +Inf, NAN, or negative.
344+
The GCount value MUST be equal to the number of measurements currently in the GaugeHistogram. The GCount is a gauge semantically. The GCount SHOULD be an integer. The GCount SHOULD NOT be -Inf, +Inf, NAN, or negative.
345345

346346
Float and negative GCount is allowed to make it possible to expose results of arithmetic operations on GaugeHistograms, such as the rate of change of a Histogram over time.
347347

@@ -422,12 +422,12 @@ metric-descriptor = HASH SP type SP (metricname / metricname-utf8) SP metric-typ
422422
metric-descriptor =/ HASH SP help SP (metricname / metricname-utf8) SP escaped-string LF
423423
metric-descriptor =/ HASH SP unit SP (metricname / metricname-utf8) SP *metricname-char LF
424424
425-
metric = *sample
426-
427425
metric-type = counter / gauge / histogram / gaugehistogram / stateset
428426
metric-type =/ info / summary / unknown
429427
430-
sample = metricname-and-labels SP value [SP timestamp] [SP start-timestamp] *exemplar LF
428+
metric = metricname-and-labels SP sample
429+
430+
sample = value [SP timestamp] [SP start-timestamp] *exemplar LF
431431
432432
value = number / "{" composite-value "}"
433433

0 commit comments

Comments
 (0)