You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(om2): test that examples follow the spec and fix if not
I did not want to clutter the examples with adding "# EOF" to all,
so I made a new marker to explicitly add it on request.
There was only one faulty example where we had an extra space, see
the Exemplars section.
Signed-off-by: György Krajcsovits <[email protected]>
@@ -842,7 +842,7 @@ If present, the MetricPoint's Sum Value Sample MetricName MUST have the suffix `
842
842
843
843
An example of a Metric with no labels and a MetricPoint with Sum, Count and Created values:
844
844
845
-
```
845
+
```openmetrics-add-eof
846
846
# TYPE foo summary
847
847
foo_count 17.0
848
848
foo_sum 324789.3
@@ -851,7 +851,7 @@ foo_created 1520430000.123
851
851
852
852
An example of a Metric with no labels and a MetricPoint with two quantiles:
853
853
854
-
```
854
+
```openmetrics-add-eof
855
855
# TYPE foo summary
856
856
foo{quantile="0.95"} 123.7
857
857
foo{quantile="0.99"} 150.0
@@ -868,7 +868,7 @@ Buckets MUST be sorted in number increasing order of "le", and the value of the
868
868
869
869
An example of a Metric with no labels and a MetricPoint with Sum, Count, and Created values, and with 12 buckets. A wide and atypical but valid variety of “le” values is shown on purpose:
870
870
871
-
```
871
+
```openmetrics-add-eof
872
872
# TYPE foo histogram
873
873
foo_bucket{le="0.0"} 0
874
874
foo_bucket{le="1e-05"} 0
@@ -948,7 +948,7 @@ Exemplars without Labels MUST represent an empty LabelSet as {}.
948
948
An example of Exemplars showcasing several valid cases:
949
949
The "0.01" bucket has no Exemplar. The 0.1 bucket has an Exemplar with no Labels. The 1 bucket has an Exemplar with one Label. The 10 bucket has an Exemplar with a Label and a timestamp. In practice all buckets SHOULD have the same style of Exemplars.
0 commit comments