From f8fa6491dbb37d469db87125fb80d056a4ed8bb1 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Fri, 19 Sep 2025 22:16:19 +0300 Subject: [PATCH] [mdatagen] Set metrics' default stability to development Signed-off-by: ChrsMark --- .chloggen/make_default_dev_metric_stblty.yaml | 25 +++++++++++ cmd/mdatagen/internal/loader.go | 12 +++++ cmd/mdatagen/internal/loader_test.go | 19 +++++--- cmd/mdatagen/internal/metric.go | 12 ++--- .../internal/sampleconnector/documentation.md | 30 ++++++------- .../internal/sampleconnector/metadata.yaml | 8 ++++ .../internal/samplereceiver/documentation.md | 44 +++++++++---------- .../internal/metadata/generated_telemetry.go | 6 +-- .../metadatatest/generated_telemetrytest.go | 6 +-- .../internal/samplereceiver/metadata.yaml | 8 ++++ .../internal/samplescraper/documentation.md | 22 +++++----- .../internal/samplescraper/metadata.yaml | 4 ++ 12 files changed, 131 insertions(+), 65 deletions(-) create mode 100644 .chloggen/make_default_dev_metric_stblty.yaml diff --git a/.chloggen/make_default_dev_metric_stblty.yaml b/.chloggen/make_default_dev_metric_stblty.yaml new file mode 100644 index 000000000000..9609f002b1ce --- /dev/null +++ b/.chloggen/make_default_dev_metric_stblty.yaml @@ -0,0 +1,25 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: mdatagen + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "Set default stability to development for metrics" + +# One or more tracking issues or pull requests related to the change +issues: [13870] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/cmd/mdatagen/internal/loader.go b/cmd/mdatagen/internal/loader.go index 161e3bf50a77..af9210bc9f55 100644 --- a/cmd/mdatagen/internal/loader.go +++ b/cmd/mdatagen/internal/loader.go @@ -11,6 +11,8 @@ import ( "path/filepath" "strings" + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/confmap/confmaptest" "go.opentelemetry.io/collector/confmap/provider/fileprovider" ) @@ -63,10 +65,20 @@ func LoadMetadata(filePath string) (Metadata, error) { setAttributesFullName(md.Attributes) setAttributesFullName(md.ResourceAttributes) + setDefaultMetricStabilityLevel(md.Metrics) return md, nil } +func setDefaultMetricStabilityLevel(metrics map[MetricName]Metric) { + for mName, metric := range metrics { + if metric.Stability.Level == component.StabilityLevelUndefined { + metric.Stability.Level = component.StabilityLevelDevelopment + metrics[mName] = metric + } + } +} + var componentTypes = []string{ "connector", "exporter", diff --git a/cmd/mdatagen/internal/loader_test.go b/cmd/mdatagen/internal/loader_test.go index 4ea52e111d93..5b25db4882cc 100644 --- a/cmd/mdatagen/internal/loader_test.go +++ b/cmd/mdatagen/internal/loader_test.go @@ -221,6 +221,9 @@ func TestLoadMetadata(t *testing.T) { Enabled: true, Description: "Monotonic cumulative sum int metric enabled by default.", ExtendedDocumentation: "The metric will be become optional soon.", + Stability: Stability{ + Level: component.StabilityLevelDevelopment, + }, Warnings: Warnings{ IfEnabledNotSet: "This metric will be disabled by default soon.", }, @@ -237,6 +240,7 @@ func TestLoadMetadata(t *testing.T) { Signal: Signal{ Enabled: false, Description: "[DEPRECATED] Gauge double metric disabled by default.", + Stability: Stability{Level: component.StabilityLevelDeprecated}, Warnings: Warnings{ IfConfigured: "This metric is deprecated and will be removed soon.", }, @@ -251,6 +255,7 @@ func TestLoadMetadata(t *testing.T) { Signal: Signal{ Enabled: false, Description: "[DEPRECATED] Gauge double metric disabled by default.", + Stability: Stability{Level: component.StabilityLevelDeprecated}, Warnings: Warnings{ IfConfigured: "This metric is deprecated and will be removed soon.", }, @@ -265,6 +270,7 @@ func TestLoadMetadata(t *testing.T) { "default.metric.to_be_removed": { Signal: Signal{ Enabled: true, + Stability: Stability{Level: component.StabilityLevelDeprecated}, Description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default.", ExtendedDocumentation: "The metric will be removed soon.", Warnings: Warnings{ @@ -280,7 +286,10 @@ func TestLoadMetadata(t *testing.T) { }, "metric.input_type": { Signal: Signal{ - Enabled: true, + Enabled: true, + Stability: Stability{ + Level: component.StabilityLevelBeta, + }, Description: "Monotonic cumulative sum int metric with string input_type enabled by default.", Attributes: []AttributeName{"string_attr", "overridden_int_attr", "enum_attr", "slice_attr", "map_attr"}, }, @@ -332,7 +341,7 @@ func TestLoadMetadata(t *testing.T) { "batch_size_trigger_send": { Signal: Signal{ Enabled: true, - Stability: Stability{Level: "deprecated", From: "v0.110.0"}, + Stability: Stability{Level: component.StabilityLevelDeprecated, From: "v0.110.0"}, Description: "Number of times the batch was sent due to a size trigger", }, Unit: strPtr("{times}"), @@ -344,7 +353,7 @@ func TestLoadMetadata(t *testing.T) { "request_duration": { Signal: Signal{ Enabled: true, - Stability: Stability{Level: "alpha"}, + Stability: Stability{Level: component.StabilityLevelAlpha}, Description: "Duration of request", }, Unit: strPtr("s"), @@ -356,7 +365,7 @@ func TestLoadMetadata(t *testing.T) { "process_runtime_total_alloc_bytes": { Signal: Signal{ Enabled: true, - Stability: Stability{Level: "stable"}, + Stability: Stability{Level: component.StabilityLevelStable}, Description: "Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalAlloc')", }, Unit: strPtr("By"), @@ -371,7 +380,7 @@ func TestLoadMetadata(t *testing.T) { "queue_length": { Signal: Signal{ Enabled: true, - Stability: Stability{Level: "alpha"}, + Stability: Stability{Level: component.StabilityLevelAlpha}, Description: "This metric is optional and therefore not initialized in NewTelemetryBuilder.", ExtendedDocumentation: "For example this metric only exists if feature A is enabled.", }, diff --git a/cmd/mdatagen/internal/metric.go b/cmd/mdatagen/internal/metric.go index feb40872b288..ebce790e3a48 100644 --- a/cmd/mdatagen/internal/metric.go +++ b/cmd/mdatagen/internal/metric.go @@ -6,7 +6,6 @@ package internal // import "go.opentelemetry.io/collector/cmd/mdatagen/internal" import ( "errors" "fmt" - "strings" "golang.org/x/text/cases" "golang.org/x/text/language" @@ -48,18 +47,19 @@ type Metric struct { } type Stability struct { - Level string `mapstructure:"level"` - From string `mapstructure:"from"` + Level component.StabilityLevel `mapstructure:"level"` + From string `mapstructure:"from"` } func (s Stability) String() string { - if s.Level == "" || strings.EqualFold(s.Level, component.StabilityLevelStable.String()) { + if s.Level == component.StabilityLevelUndefined || + s.Level == component.StabilityLevelStable { return "" } if s.From != "" { - return fmt.Sprintf(" [%s since %s]", s.Level, s.From) + return fmt.Sprintf(" [%s since %s]", s.Level.String(), s.From) } - return fmt.Sprintf(" [%s]", s.Level) + return fmt.Sprintf(" [%s]", s.Level.String()) } func (m *Metric) validate() error { diff --git a/cmd/mdatagen/internal/sampleconnector/documentation.md b/cmd/mdatagen/internal/sampleconnector/documentation.md index 6e0e585ba982..77d6645b8314 100644 --- a/cmd/mdatagen/internal/sampleconnector/documentation.md +++ b/cmd/mdatagen/internal/sampleconnector/documentation.md @@ -18,9 +18,9 @@ Monotonic cumulative sum int metric enabled by default. The metric will be become optional soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Int | Cumulative | true | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Int | Cumulative | true | Development | #### Attributes @@ -38,17 +38,17 @@ The metric will be become optional soon. The metric will be removed soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Double | Delta | false | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Double | Delta | false | Deprecated | ### metric.input_type Monotonic cumulative sum int metric with string input_type enabled by default. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Int | Cumulative | true | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Int | Cumulative | true | Beta | #### Attributes @@ -74,9 +74,9 @@ metrics: [DEPRECATED] Gauge double metric disabled by default. -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Gauge | Double | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Gauge | Double | Deprecated | #### Attributes @@ -90,9 +90,9 @@ metrics: [DEPRECATED] Gauge double metric disabled by default. -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| | Gauge | Double | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| | Gauge | Double | Deprecated | #### Attributes diff --git a/cmd/mdatagen/internal/sampleconnector/metadata.yaml b/cmd/mdatagen/internal/sampleconnector/metadata.yaml index ad46b6f834dc..0045f681ac2a 100644 --- a/cmd/mdatagen/internal/sampleconnector/metadata.yaml +++ b/cmd/mdatagen/internal/sampleconnector/metadata.yaml @@ -116,6 +116,8 @@ metrics: enabled: false description: "[DEPRECATED] Gauge double metric disabled by default." unit: "1" + stability: + level: deprecated gauge: value_type: double attributes: [string_attr, boolean_attr, boolean_attr2] @@ -126,6 +128,8 @@ metrics: enabled: false description: "[DEPRECATED] Gauge double metric disabled by default." unit: "" + stability: + level: deprecated gauge: value_type: double attributes: [string_attr, boolean_attr] @@ -136,6 +140,8 @@ metrics: enabled: true description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." extended_documentation: The metric will be removed soon. + stability: + level: deprecated unit: s sum: value_type: double @@ -146,6 +152,8 @@ metrics: metric.input_type: enabled: true + stability: + level: beta description: Monotonic cumulative sum int metric with string input_type enabled by default. unit: s sum: diff --git a/cmd/mdatagen/internal/samplereceiver/documentation.md b/cmd/mdatagen/internal/samplereceiver/documentation.md index acf905fb8661..e46cafabc8a3 100644 --- a/cmd/mdatagen/internal/samplereceiver/documentation.md +++ b/cmd/mdatagen/internal/samplereceiver/documentation.md @@ -18,9 +18,9 @@ Monotonic cumulative sum int metric enabled by default. The metric will be become optional soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Int | Cumulative | true | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Int | Cumulative | true | Development | #### Attributes @@ -40,17 +40,17 @@ The metric will be become optional soon. The metric will be removed soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Double | Delta | false | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Double | Delta | false | Deprecated | ### metric.input_type Monotonic cumulative sum int metric with string input_type enabled by default. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Int | Cumulative | true | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Int | Cumulative | true | Beta | #### Attributes @@ -76,9 +76,9 @@ metrics: [DEPRECATED] Gauge double metric disabled by default. -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Gauge | Double | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Gauge | Double | Deprecated | #### Attributes @@ -93,9 +93,9 @@ metrics: [DEPRECATED] Gauge double metric disabled by default. -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| | Gauge | Double | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| | Gauge | Double | Deprecated | #### Attributes @@ -190,11 +190,11 @@ The following telemetry is emitted by this component. ### otelcol_batch_size_trigger_send -Number of times the batch was sent due to a size trigger [deprecated since v0.110.0] +Number of times the batch was sent due to a size trigger [Deprecated since v0.110.0] | Unit | Metric Type | Value Type | Monotonic | Stability | | ---- | ----------- | ---------- | --------- | --------- | -| {times} | Sum | Int | true | deprecated | +| {times} | Sum | Int | true | Deprecated | ### otelcol_process_runtime_total_alloc_bytes @@ -202,7 +202,7 @@ Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalA | Unit | Metric Type | Value Type | Monotonic | Stability | | ---- | ----------- | ---------- | --------- | --------- | -| By | Sum | Int | true | stable | +| By | Sum | Int | true | Stable | ### otelcol_queue_capacity @@ -214,18 +214,18 @@ Queue capacity - sync gauge example. ### otelcol_queue_length -This metric is optional and therefore not initialized in NewTelemetryBuilder. [alpha] +This metric is optional and therefore not initialized in NewTelemetryBuilder. [Alpha] For example this metric only exists if feature A is enabled. | Unit | Metric Type | Value Type | Stability | | ---- | ----------- | ---------- | --------- | -| {items} | Gauge | Int | alpha | +| {items} | Gauge | Int | Alpha | ### otelcol_request_duration -Duration of request [alpha] +Duration of request [Alpha] | Unit | Metric Type | Value Type | Stability | | ---- | ----------- | ---------- | --------- | -| s | Histogram | Double | alpha | +| s | Histogram | Double | Alpha | diff --git a/cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go b/cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go index a1a52cc2c18f..c1ec1d10f09b 100644 --- a/cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go +++ b/cmd/mdatagen/internal/samplereceiver/internal/metadata/generated_telemetry.go @@ -106,7 +106,7 @@ func NewTelemetryBuilder(settings component.TelemetrySettings, options ...Teleme var err, errs error builder.BatchSizeTriggerSend, err = builder.meter.Int64Counter( "otelcol_batch_size_trigger_send", - metric.WithDescription("Number of times the batch was sent due to a size trigger [deprecated since v0.110.0]"), + metric.WithDescription("Number of times the batch was sent due to a size trigger [Deprecated since v0.110.0]"), metric.WithUnit("{times}"), ) errs = errors.Join(errs, err) @@ -124,13 +124,13 @@ func NewTelemetryBuilder(settings component.TelemetrySettings, options ...Teleme errs = errors.Join(errs, err) builder.QueueLength, err = builder.meter.Int64ObservableGauge( "otelcol_queue_length", - metric.WithDescription("This metric is optional and therefore not initialized in NewTelemetryBuilder. [alpha]"), + metric.WithDescription("This metric is optional and therefore not initialized in NewTelemetryBuilder. [Alpha]"), metric.WithUnit("{items}"), ) errs = errors.Join(errs, err) builder.RequestDuration, err = builder.meter.Float64Histogram( "otelcol_request_duration", - metric.WithDescription("Duration of request [alpha]"), + metric.WithDescription("Duration of request [Alpha]"), metric.WithUnit("s"), metric.WithExplicitBucketBoundaries([]float64{1, 10, 100}...), ) diff --git a/cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest.go b/cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest.go index c89f21ad0438..36baacc0a200 100644 --- a/cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest.go +++ b/cmd/mdatagen/internal/samplereceiver/internal/metadatatest/generated_telemetrytest.go @@ -25,7 +25,7 @@ func NewSettings(tt *componenttest.Telemetry) receiver.Settings { func AssertEqualBatchSizeTriggerSend(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_batch_size_trigger_send", - Description: "Number of times the batch was sent due to a size trigger [deprecated since v0.110.0]", + Description: "Number of times the batch was sent due to a size trigger [Deprecated since v0.110.0]", Unit: "{times}", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -71,7 +71,7 @@ func AssertEqualQueueCapacity(t *testing.T, tt *componenttest.Telemetry, dps []m func AssertEqualQueueLength(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_queue_length", - Description: "This metric is optional and therefore not initialized in NewTelemetryBuilder. [alpha]", + Description: "This metric is optional and therefore not initialized in NewTelemetryBuilder. [Alpha]", Unit: "{items}", Data: metricdata.Gauge[int64]{ DataPoints: dps, @@ -85,7 +85,7 @@ func AssertEqualQueueLength(t *testing.T, tt *componenttest.Telemetry, dps []met func AssertEqualRequestDuration(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.HistogramDataPoint[float64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_request_duration", - Description: "Duration of request [alpha]", + Description: "Duration of request [Alpha]", Unit: "s", Data: metricdata.Histogram[float64]{ Temporality: metricdata.CumulativeTemporality, diff --git a/cmd/mdatagen/internal/samplereceiver/metadata.yaml b/cmd/mdatagen/internal/samplereceiver/metadata.yaml index 95b22c30741e..16f8bdeb9312 100644 --- a/cmd/mdatagen/internal/samplereceiver/metadata.yaml +++ b/cmd/mdatagen/internal/samplereceiver/metadata.yaml @@ -158,6 +158,8 @@ metrics: enabled: false description: "[DEPRECATED] Gauge double metric disabled by default." unit: "1" + stability: + level: deprecated gauge: value_type: double attributes: [string_attr, boolean_attr, boolean_attr2, optional_string_attr] @@ -168,6 +170,8 @@ metrics: enabled: false description: "[DEPRECATED] Gauge double metric disabled by default." unit: "" + stability: + level: deprecated gauge: value_type: double attributes: [string_attr, boolean_attr] @@ -179,6 +183,8 @@ metrics: description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." extended_documentation: The metric will be removed soon. unit: s + stability: + level: deprecated sum: value_type: double monotonic: false @@ -188,6 +194,8 @@ metrics: metric.input_type: enabled: true + stability: + level: beta description: Monotonic cumulative sum int metric with string input_type enabled by default. unit: s sum: diff --git a/cmd/mdatagen/internal/samplescraper/documentation.md b/cmd/mdatagen/internal/samplescraper/documentation.md index 5044a8669ef5..77d6645b8314 100644 --- a/cmd/mdatagen/internal/samplescraper/documentation.md +++ b/cmd/mdatagen/internal/samplescraper/documentation.md @@ -18,9 +18,9 @@ Monotonic cumulative sum int metric enabled by default. The metric will be become optional soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Int | Cumulative | true | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Int | Cumulative | true | Development | #### Attributes @@ -38,9 +38,9 @@ The metric will be become optional soon. The metric will be removed soon. -| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | -| ---- | ----------- | ---------- | ----------------------- | --------- | -| s | Sum | Double | Delta | false | +| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | +| ---- | ----------- | ---------- | ----------------------- | --------- | --------- | +| s | Sum | Double | Delta | false | Deprecated | ### metric.input_type @@ -48,7 +48,7 @@ Monotonic cumulative sum int metric with string input_type enabled by default. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | | ---- | ----------- | ---------- | ----------------------- | --------- | --------- | -| s | Sum | Int | Cumulative | true | beta | +| s | Sum | Int | Cumulative | true | Beta | #### Attributes @@ -74,9 +74,9 @@ metrics: [DEPRECATED] Gauge double metric disabled by default. -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Gauge | Double | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Gauge | Double | Deprecated | #### Attributes @@ -92,7 +92,7 @@ metrics: | Unit | Metric Type | Value Type | Stability | | ---- | ----------- | ---------- | --------- | -| | Gauge | Double | deprecated | +| | Gauge | Double | Deprecated | #### Attributes diff --git a/cmd/mdatagen/internal/samplescraper/metadata.yaml b/cmd/mdatagen/internal/samplescraper/metadata.yaml index efb1a963bb9c..e50fc4ff9ab1 100644 --- a/cmd/mdatagen/internal/samplescraper/metadata.yaml +++ b/cmd/mdatagen/internal/samplescraper/metadata.yaml @@ -117,6 +117,8 @@ metrics: enabled: false description: "[DEPRECATED] Gauge double metric disabled by default." unit: "1" + stability: + level: deprecated gauge: value_type: double attributes: [string_attr, boolean_attr, boolean_attr2] @@ -138,6 +140,8 @@ metrics: default.metric.to_be_removed: enabled: true description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default." + stability: + level: deprecated extended_documentation: The metric will be removed soon. unit: s sum: