forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/kubeletstatsreceiver] prepend container. metrics with k8s.
This PR introduces `k8s.container*` metrics, which will replace their `container.*` metrics counterparts. For now, the `k8s.container*` metrics are disabled by default. The following process will be followed to phase out the old metrics: - In `v0.82.0`, the new metric is introduced and the old metric is marked as deprecated. Only the old metric are emitted by default. - In `v0.84.0`, the old metric is disabled and the new one enabled by default. - In `v0.86.0` and up, the old metric is removed. Please refer to the following issue: open-telemetry#24238 for the reason for this change.
- Loading branch information
Showing
14 changed files
with
1,644 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# If your change doesn't affect end users, such as a test fix or a tooling change, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# 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: kubeletstatsreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Change the type from RecordDoubleDataPointFunc to []RecordDoubleDataPointFunc for CPUMetrics.{Time,Utilization}, and from RecordIntDataPointFunc to []RecordIntDataPointFunc for MemoryMetrics.{Available,Usage,Rss,WorkingSet,PageFaults,MajorPageFaults} and FilesystemMetrics.{Available,Capacity,Usage}. | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [24238] | ||
|
||
# (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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# If your change doesn't affect end users, such as a test fix or a tooling change, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: deprecation | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: kubestatsreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: container.* metrics will be deprecated in v0.82.0 in favor of their k8s.container.* counterparts | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [24238] | ||
|
||
# (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 starts the process of phasing out container.* metrics: | ||
- `container.cpu.utilization` | ||
- `container.cpu.time` | ||
- `container.memory.available` | ||
- `container.memory.usage` | ||
- `container.memory.rss` | ||
- `container.memory.working_set` | ||
- `container.memory.page_faults` | ||
- `container.memory.major_page_faults` | ||
- `container.filesystem.available` | ||
- `container.filesystem.capacity` | ||
- `container.filesystem.usage` | ||
and replacing it with their k8s.container* counterparts: | ||
- `k8s.container.cpu.utilization` | ||
- `k8s.container.cpu.time` | ||
- `k8s.container.memory.available` | ||
- `k8s.container.memory.usage` | ||
- `k8s.container.memory.rss` | ||
- `k8s.container.memory.working_set` | ||
- `k8s.container.memory.page_faults` | ||
- `k8s.container.memory.major_page_faults` | ||
- `k8s.container.filesystem.available` | ||
- `k8s.container.filesystem.capacity` | ||
- `k8s.container.filesystem.usage` | ||
At this stage, the new metric is added, but is disabled by default. | ||
See the "Deprecations" section of the Kubelet Stats receiver's README for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.