Skip to content

Commit

Permalink
move tree structure to MetricsData
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianfekete committed Apr 15, 2024
1 parent aabc9cb commit 20d664f
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions opentelemetry/proto/metrics/v1/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ option go_package = "go.opentelemetry.io/proto/otlp/metrics/v1";
// storage, OR can be embedded by other protocols that transfer OTLP metrics
// data but do not implement the OTLP protocol.
//
// MetricsData
// └─── ResourceMetrics
// ├── Resource
// ├── SchemaURL
// └── ScopeMetrics
// ├── Scope
// ├── SchemaURL
// └── Metric
// ├── Name
// ├── Description
// ├── Unit
// └── data
// ├── Gauge
// ├── Sum
// ├── Histogram
// ├── ExponentialHistogram
// └── Summary
//
// The main difference between this message and collector protocol is that
// in this message there will not be any "control" or "metadata" specific to
// OTLP protocol.
Expand Down Expand Up @@ -85,7 +103,6 @@ message ScopeMetrics {
//
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md
//
//
// The data model and relation between entities is shown in the
// diagram below. Here, "DataPoint" is the term used to refer to any
// one of the specific data point value types, and "points" is the term used
Expand All @@ -97,25 +114,6 @@ message ScopeMetrics {
// - DataPoint contains timestamps, attributes, and one of the possible value type
// fields.
//
// MetricsData
// ├── ResourceMetrics
// │ ├── Resource
// │ ├── SchemaURL
// │ └── ScopeMetrics
// │ ├── Scope
// │ ├── SchemaURL
// │ └── Metric
// │ ├── Name
// │ ├── Description
// │ ├── Unit
// │ └── data
// │ ├── Gauge
// │ ├── Sum
// │ ├── Histogram
// │ ├── ExponentialHistogram
// │ └── Summary
// └── ...
//
// Data [One of Gauge, Sum, Histogram, Summary, ...]
// +-----------+
// |... | // Metadata about the Data.
Expand Down

0 comments on commit 20d664f

Please sign in to comment.