Skip to content

Commit

Permalink
[receiver/hostmetrics] enable feature gate `receiver.hostmetrics.norm…
Browse files Browse the repository at this point in the history
…alizeProcessCPUUtilization` (open-telemetry#32502)

**Description:**

Switches the `receiver.hostmetrics.normalizeProcessCPUUtilization`
feature gate to Beta, making it enabled by default.
This is according to schedule described in the
[docs](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.98.0/receiver/hostmetricsreceiver/README.md#feature-gates).

**Link to tracking Issue:**

-
open-telemetry#31368

Co-authored-by: Pablo Baeyens <[email protected]>
  • Loading branch information
andrzej-stencel and mx-psi committed May 6, 2024
1 parent df40aae commit 34e64e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .chloggen/normalize-process-cpu-feature-beta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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. filelogreceiver)
component: receiver/hostmetrics

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: enable feature gate `receiver.hostmetrics.normalizeProcessCPUUtilization`

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [31368]

# (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: |
This changes the value of the metric `process.cpu.utilization` by dividing it by the number of CPU cores.
For example, if a process is using 2 CPU cores on a 16-core machine,
the value of this metric was previously `2`, but now it will be `0.125`.
# 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: []
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var normalizeProcessCPUUtilizationFeatureGate = featuregate.GlobalRegistry().MustRegister(
"receiver.hostmetrics.normalizeProcessCPUUtilization",
featuregate.StageAlpha,
featuregate.StageBeta,
featuregate.WithRegisterDescription("When enabled, normalizes the process.cpu.utilization metric onto the interval [0-1] by dividing the value by the number of logical processors."),
featuregate.WithRegisterFromVersion("v0.97.0"),
featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/31368"),
Expand Down

0 comments on commit 34e64e0

Please sign in to comment.