From c303caf43197458209d120cc8f05dcf06b6e4d00 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:17:20 -0700 Subject: [PATCH 1/5] [receiver/vcenter] set feature gate to beta This was targetted to be enabled by default in v0.107.0... we are a few versions beyond that now. Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- receiver/vcenterreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/vcenterreceiver/README.md b/receiver/vcenterreceiver/README.md index 386bc2e8cd6b6..61c420dd1a4e4 100644 --- a/receiver/vcenterreceiver/README.md +++ b/receiver/vcenterreceiver/README.md @@ -59,7 +59,7 @@ Details about the metrics produced by this receiver can be found in [metadata.ya ### Feature gates -**ALPHA**: `receiver.vcenter.resourcePoolMemoryUsageAttribute` +**BETA**: `receiver.vcenter.resourcePoolMemoryUsageAttribute` The feature gate `receiver.vcenter.resourcePoolMemoryUsageAttribute` once enabled will enable the memory usage type attribute for the `vcenter.resource_pool.memory.usage` metric. From 90545e5345e452aee671520ca171042deee3cdbd Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:19:28 -0700 Subject: [PATCH 2/5] changelog Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- .chloggen/codeboten_vcenter-fg.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .chloggen/codeboten_vcenter-fg.yaml diff --git a/.chloggen/codeboten_vcenter-fg.yaml b/.chloggen/codeboten_vcenter-fg.yaml new file mode 100644 index 0000000000000..57408acdeb434 --- /dev/null +++ b/.chloggen/codeboten_vcenter-fg.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog) +component: vcenterreceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Set resourcePoolMemoryUsageAttribute feature gate to beta. + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [47552] + +# (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: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# 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: [] From 3390c63e788ffc22bd5b9b5f973f2a2b12b1dc98 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:27:48 -0700 Subject: [PATCH 3/5] Apply suggestion --- .chloggen/codeboten_vcenter-fg.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chloggen/codeboten_vcenter-fg.yaml b/.chloggen/codeboten_vcenter-fg.yaml index 57408acdeb434..78106edb66446 100644 --- a/.chloggen/codeboten_vcenter-fg.yaml +++ b/.chloggen/codeboten_vcenter-fg.yaml @@ -4,7 +4,7 @@ change_type: breaking # The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog) -component: vcenterreceiver +component: receiver/vcenter # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). note: Set resourcePoolMemoryUsageAttribute feature gate to beta. From 3db8072af46cd361ed53f7533cddc3ee0a44af56 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Mon, 13 Apr 2026 09:37:16 -0700 Subject: [PATCH 4/5] update tests Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- receiver/vcenterreceiver/scraper_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/receiver/vcenterreceiver/scraper_test.go b/receiver/vcenterreceiver/scraper_test.go index 0884561924c85..c6374645051c6 100644 --- a/receiver/vcenterreceiver/scraper_test.go +++ b/receiver/vcenterreceiver/scraper_test.go @@ -22,6 +22,7 @@ import ( func TestScrape(t *testing.T) { ctx := t.Context() + setResourcePoolMemoryUsageAttrFeatureGate(t, false) mockServer := mock.MockServer(t, false) defer mockServer.Close() @@ -46,7 +47,6 @@ func TestScrapeConfigsEnabled(t *testing.T) { optConfigs.Metrics.VcenterVMNetworkBroadcastPacketRate.Enabled = true optConfigs.Metrics.VcenterVMNetworkMulticastPacketRate.Enabled = true optConfigs.Metrics.VcenterVMCPUTime.Enabled = true - setResourcePoolMemoryUsageAttrFeatureGate(t, true) cfg := &Config{ MetricsBuilderConfig: optConfigs, @@ -63,6 +63,8 @@ func TestScrape_TLS(t *testing.T) { mockServer := mock.MockServer(t, true) defer mockServer.Close() + setResourcePoolMemoryUsageAttrFeatureGate(t, false) + cfg := &Config{ MetricsBuilderConfig: metadata.NewDefaultMetricsBuilderConfig(), Endpoint: mockServer.URL, From 270b1c97a2366e734b6f558c4056d611773df64f Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 29 May 2026 08:27:18 -0700 Subject: [PATCH 5/5] update metadata flag Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- receiver/vcenterreceiver/documentation.md | 2 +- .../internal/metadata/generated_feature_gates.go | 4 ++-- receiver/vcenterreceiver/metadata.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/receiver/vcenterreceiver/documentation.md b/receiver/vcenterreceiver/documentation.md index 0098a6eef9663..416c33f209277 100644 --- a/receiver/vcenterreceiver/documentation.md +++ b/receiver/vcenterreceiver/documentation.md @@ -902,6 +902,6 @@ This component has the following feature gates: | Feature Gate | Stage | Description | From Version | To Version | Reference | | ------------ | ----- | ----------- | ------------ | ---------- | --------- | -| `receiver.vcenter.resourcePoolMemoryUsageAttribute` | alpha | Enables the memory usage type attribute for the vcenter.resource_pool.memory.usage metric | v0.104.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33741) | +| `receiver.vcenter.resourcePoolMemoryUsageAttribute` | beta | Enables the memory usage type attribute for the vcenter.resource_pool.memory.usage metric | v0.153.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33741) | For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation. diff --git a/receiver/vcenterreceiver/internal/metadata/generated_feature_gates.go b/receiver/vcenterreceiver/internal/metadata/generated_feature_gates.go index 3d019a1d45a77..7082ee1462ebf 100644 --- a/receiver/vcenterreceiver/internal/metadata/generated_feature_gates.go +++ b/receiver/vcenterreceiver/internal/metadata/generated_feature_gates.go @@ -8,8 +8,8 @@ import ( var ReceiverVcenterResourcePoolMemoryUsageAttributeFeatureGate = featuregate.GlobalRegistry().MustRegister( "receiver.vcenter.resourcePoolMemoryUsageAttribute", - featuregate.StageAlpha, + featuregate.StageBeta, featuregate.WithRegisterDescription("Enables the memory usage type attribute for the vcenter.resource_pool.memory.usage metric"), featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33741"), - featuregate.WithRegisterFromVersion("v0.104.0"), + featuregate.WithRegisterFromVersion("v0.153.0"), ) diff --git a/receiver/vcenterreceiver/metadata.yaml b/receiver/vcenterreceiver/metadata.yaml index d9edc099cc28f..afa299fa198dc 100644 --- a/receiver/vcenterreceiver/metadata.yaml +++ b/receiver/vcenterreceiver/metadata.yaml @@ -18,8 +18,8 @@ feature_gates: - id: receiver.vcenter.resourcePoolMemoryUsageAttribute description: >- Enables the memory usage type attribute for the vcenter.resource_pool.memory.usage metric - stage: alpha - from_version: "v0.104.0" + stage: beta + from_version: "v0.153.0" reference_url: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33741 skip_strict_validation: true