Skip to content

Commit 5529ec4

Browse files
committed
add example with multiple samples per metric
Signed-off-by: David Ashpole <dashpole@google.com>
1 parent aad8d1d commit 5529ec4

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

docs/specs/om/open_metrics_spec_2_0.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -859,16 +859,22 @@ foo{entity="replica",foo="ccc"} 1.0
859859

860860
StateSet MetricGroups MUST NOT be interleaved.
861861

862-
A correct example where there are multiple MetricGroups within a MetricFamily, and multiple Metrics within each MetricGroup:
862+
A correct example where there are multiple MetricGroups within a MetricFamily, and multiple Metrics within each MetricGroup, and multiple Samples within each Metric:
863863

864864
```openmetrics-add-eof
865865
# TYPE foo stateset
866-
foo{entity="controller",foo="a"} 1.0
867-
foo{entity="controller",foo="bb"} 0.0
868-
foo{entity="controller",foo="ccc"} 0.0
869-
foo{entity="replica",foo="a"} 1.0
870-
foo{entity="replica",foo="bb"} 0.0
871-
foo{entity="replica",foo="ccc"} 1.0
866+
foo{entity="controller",foo="a"} 1.0 1000000000.000
867+
foo{entity="controller",foo="a"} 0.0 1000000001.000
868+
foo{entity="controller",foo="bb"} 0.0 1000000000.000
869+
foo{entity="controller",foo="bb"} 1.0 1000000001.000
870+
foo{entity="controller",foo="ccc"} 0.0 1000000000.000
871+
foo{entity="controller",foo="ccc"} 0.0 1000000001.000
872+
foo{entity="replica",foo="a"} 1.0 1000000000.000
873+
foo{entity="replica",foo="a"} 1.0 1000000001.000
874+
foo{entity="replica",foo="bb"} 0.0 1000000000.000
875+
foo{entity="replica",foo="bb"} 1.0 1000000001.000
876+
foo{entity="replica",foo="ccc"} 0.0 1000000000.000
877+
foo{entity="replica",foo="ccc"} 0.0 1000000001.000
872878
```
873879

874880
An incorrect example where MetricGroups are interleaved:

0 commit comments

Comments
 (0)