Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/specs/om/open_metrics_spec_2_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,16 @@ Floating point numbers MUST be represented either with a decimal point or using

###### CompositeValues

CompositeValue is represented as structured data with fields. There MUST NOT be any whitespace around fields. See the ABNF for exact details about the format and possible values.
CompositeValue is represented as structured data with fields. There MUST NOT be any whitespace around fields. See each of the composite type sections for the known field names. Ingestors MUST ignore unknown fields.

For example, the following histogram is valid:

```openmetrics-add-eof
# TYPE foo histogram
foo {newfield1:[],count:17,sum:324789.3,bucket:[0.0:0,1e-05:0,+Inf:17],newfield2:21,newfield3:{}} st@1520430000.123
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WG discussion:

  • There's order
  • Hard to for nested structures
  • Maybe new fields at the end? numbers and maybe slices?
  • Without unknowns and we want extend. 2.1 and content negotiation is fine?

```

See the ABNF for the further details about the format.

##### Timestamps

Expand Down
Loading