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
Allow multiple exemplars for complex types, i.e. native histograms.
But require that the timestamp is present.
Signed-off-by: György Krajcsovits <[email protected]>
Copy file name to clipboardExpand all lines: docs/specs/om/open_metrics_spec_2_0.md
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ Each MetricPoint consists of a set of values, depending on the MetricFamily type
106
106
107
107
Exemplars are references to data outside of the MetricSet. A common use case are IDs of program traces.
108
108
109
-
Exemplars MUST consist of a LabelSet and a value, and MAY have a timestamp. They MAY each be different from the MetricPoints' LabelSet and timestamp.
109
+
Exemplars MUST consist of a LabelSet and a value. Exemplars associated with numeric values MAT have a timestamp. Exemplars associated with complex types MUST have a timestamp. They MAY each be different from the MetricPoints' LabelSet and timestamp.
110
110
111
111
The combined length of the label names and values of an Exemplar's LabelSet MUST NOT exceed 128 UTF-8 character code points. Other characters in the text rendering of an exemplar such as `",=` are not included in this limit for implementation simplicity and for consistency between the text and proto formats.
The MetricPoint's Bucket Values Sample MetricNames MUST have the suffix `_bucket`. If present, the MetricPoint's Sum Value Sample MetricName MUST have the suffix `_sum`. If present, the MetricPoint's Created Value Sample MetricName MUST have the suffix `_created`.
865
866
If and only if a Sum Value is present in a MetricPoint, then the MetricPoint's +Inf Bucket value MUST also appear in a Sample with a MetricName with the suffix "_count".
@@ -908,15 +909,15 @@ The sum of all length values in each span list MUST be equal to the length of th
Exemplars without Labels MUST represent an empty LabelSet as {}.
947
948
948
949
An example of Exemplars showcasing several valid cases:
950
+
The native histogram version of the histogram has multiple Exemplars.
949
951
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