Skip to content
Open
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
52 changes: 34 additions & 18 deletions docs/specs/om/open_metrics_spec_2_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ This section MUST be read together with the ABNF section. In case of disagreemen

```mermaid
classDiagram
class MetricSet
class MetricFamily
class MetricSet {}
class MetricFamily {
+String Name
+String Help
+String Unit
}
class MetricFamilyType {
<<enumeration>>
gauge
Expand All @@ -87,39 +91,51 @@ classDiagram
summary
unknown
}
class MetricGroup{
<<stateset>>
}
class Metric
class LabelSet
class Label
class Label{
+String Name
+String Value
}
class Sample
class Timestamp
class Timestamp{
+Float UnixEpochSeconds
}
class Exemplar
class SampleValue {
class SampleValue{
<<abstract>>
}
class Number
class Number{
+Float|Integer
}
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
MetricFamily "1" --> "1" MetricFamilyType: Type
MetricFamily "1" --> "0..*" Metric: Metrics
MetricFamily "1" --> "0..*" MetricGroup: Metric Groups
MetricGroup "1" --> "1..*" Metric: Metrics
Metric "1" --> "1" LabelSet: Labels
Metric "1" --> "1..*" Sample: Samples
LabelSet "1" --> "0..*" Label: Labels
Sample --> "1" SampleValue : Value
Sample --> "0..1" Timestamp : Timestamp
Sample --> "0..1" Timestamp : StartTimestamp
Sample --> "0..*" Exemplar : Exemplars
SampleValue <|-- Number
SampleValue <|-- CompositeValue
CompositeValue <|-- HistogramValue
CompositeValue <|-- GaugeHistogramValue
CompositeValue <|-- SummaryValue
Exemplar --> "1" LabelSet
Exemplar --> "1" Number : value
Exemplar --> "1" Timestamp
Exemplar --> "1" LabelSet : Labels
Exemplar --> "1" Number : Value
Exemplar --> "1" Timestamp : Timestamp
```

### Data Types
Expand Down
Loading