Skip to content
Merged
Show file tree
Hide file tree
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
50 changes: 0 additions & 50 deletions docs/specs/om/open_metrics_spec_2_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,56 +72,6 @@ The word "RESERVED" is used in this document to designate values, names, or fiel

This section MUST be read together with the ABNF section. In case of disagreements between the two, the ABNF's restrictions MUST take precedence.

```mermaid
classDiagram
class MetricSet
class MetricFamily
class MetricFamilyType {
<<enumeration>>
gauge
counter
stateset
info
histogram
gaugehistogram
summary
unknown
}
class Metric
class LabelSet
class Label
class Sample
class Timestamp
class Exemplar
class SampleValue {
<<abstract>>
}
class Number
class CompositeValue
class HistogramValue
class GaugeHistogramValue
class SummaryValue

MetricSet "1" --> "0..*" MetricFamily
MetricFamily "1" --> "1" MetricFamilyType : type
MetricFamily "1" --> "0..*" Metric
Metric "1" --> "1" LabelSet
Metric "1" --> "1..*" Sample
LabelSet "1" --> "0..*" Label
Sample --> "1" SampleValue : value
Sample --> "0..1" Timestamp : timestamp
Sample --> "0..1" Timestamp : start timestamp
Sample --> "0..*" Exemplar
SampleValue <|-- Number
SampleValue <|-- CompositeValue
CompositeValue <|-- HistogramValue
CompositeValue <|-- GaugeHistogramValue
CompositeValue <|-- SummaryValue
Exemplar --> "1" LabelSet
Exemplar --> "1" Number : value
Exemplar --> "1" Timestamp
```

### Data Types

#### Sample Values
Expand Down
49 changes: 49 additions & 0 deletions public/assets/docs/specs/om/om2_data_model.mermaid
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
```mermaid
classDiagram
class MetricSet
class MetricFamily
class MetricFamilyType {
<<enumeration>>
gauge
counter
stateset
info
histogram
gaugehistogram
summary
unknown
}
class Metric
class LabelSet
class Label
class Sample
class Timestamp
class Exemplar
class SampleValue {
<<abstract>>
}
class Number
class CompositeValue
class HistogramValue
class GaugeHistogramValue
class SummaryValue

MetricSet "1" --> "0..*" MetricFamily
MetricFamily "1" --> "1" MetricFamilyType : type
MetricFamily "1" --> "0..*" Metric
Metric "1" --> "1" LabelSet
Metric "1" --> "1..*" Sample
LabelSet "1" --> "0..*" Label
Sample --> "1" SampleValue : value
Sample --> "0..1" Timestamp : timestamp
Sample --> "0..1" Timestamp : start timestamp
Sample --> "0..*" Exemplar
SampleValue <|-- Number
SampleValue <|-- CompositeValue
CompositeValue <|-- HistogramValue
CompositeValue <|-- GaugeHistogramValue
CompositeValue <|-- SummaryValue
Exemplar --> "1" LabelSet
Exemplar --> "1" Number : value
Exemplar --> "1" Timestamp
```
Loading