Skip to content

Commit 4cab5f2

Browse files
krajoramabwplotka
andauthored
Update docs/specs/om/open_metrics_spec_2_0.md
Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: George Krajcsovits <[email protected]>
1 parent 973863f commit 4cab5f2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/specs/om/open_metrics_spec_2_0.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,21 @@ List of complex data types:
8585
- Integer counter native histograms for the Metric Type Histogram.
8686
- Integer gauge native histograms for the Metric Type GaugeHistogram.
8787

88-
Complex data types MUST occur only in the corresponding MetricFamily. This means for example that a counter cannot have an integer counter native histogram value.
88+
Metric values in OpenMetrics MUST be either Number or ComplexValue.
89+
90+
[Number](#numbers) value MUST be either floating point or integer. Note that ingestors of the format MAY only support float64. The non-real values NaN, +Inf and -Inf MUST be supported. NaN value MUST NOT be considered a missing value, but it MAY be used to signal a division by zero.
91+
92+
ComplexValue MUST contain all information necessary to recreate a sample value for Metric within the MetricFamily
93+
94+
The following Metric Types MUST use ComplexValue for Metric Values:
95+
96+
TODO: Below will switch to Histogram and Summary in the next PR.
97+
* [Histogram](#histogram) MetricFamily Type with [Native Buckets](#native-buckets).
98+
* [GaugeHistogram](#gauge-histogram) MetricFamily Type with [Native Buckets](#native-buckets).
99+
100+
Other Metric Types MUST use Numbers.
101+
102+
See [Metric Types](#metric-types) for details.
89103

90104
##### Booleans
91105

0 commit comments

Comments
 (0)