Skip to content

Commit fc947b0

Browse files
povilasvXinRanZhAWS
authored andcommitted
[k8sclusterreceiver] remove k8s.kubeproxy.version resource attribute (open-telemetry#31180)
**Description:** Remove deprecated resource attribute. Deprecation happened in 0.92.0 **Link to tracking Issue:** open-telemetry#29748 (comment)
1 parent 5eb5da0 commit fc947b0

File tree

14 files changed

+28
-51
lines changed

14 files changed

+28
-51
lines changed

.chloggen/rm-kube-proxy.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: k8sclusterreceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: "Remove deprecated k8s.kubeproxy.version resource attribute"
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [29748]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]

receiver/k8sclusterreceiver/documentation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ Current status reason of the pod (1 - Evicted, 2 - NodeAffinity, 3 - NodeLost, 4
439439
| k8s.job.name | The k8s pod name. | Any Str | true |
440440
| k8s.job.uid | The k8s job uid. | Any Str | true |
441441
| k8s.kubelet.version | The version of Kubelet running on the node. | Any Str | false |
442-
| k8s.kubeproxy.version | The version of Kube Proxy running on the node. | Any Str | false |
443442
| k8s.namespace.name | The k8s namespace name. | Any Str | true |
444443
| k8s.namespace.uid | The k8s namespace uid. | Any Str | true |
445444
| k8s.node.name | The k8s node name. | Any Str | true |

receiver/k8sclusterreceiver/internal/metadata/generated_config.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_config_test.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_metrics.go

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_metrics_test.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_resource.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/generated_resource_test.go

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/k8sclusterreceiver/internal/metadata/testdata/config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ all_set:
124124
enabled: true
125125
k8s.kubelet.version:
126126
enabled: true
127-
k8s.kubeproxy.version:
128-
enabled: true
129127
k8s.namespace.name:
130128
enabled: true
131129
k8s.namespace.uid:
@@ -289,8 +287,6 @@ none_set:
289287
enabled: false
290288
k8s.kubelet.version:
291289
enabled: false
292-
k8s.kubeproxy.version:
293-
enabled: false
294290
k8s.namespace.name:
295291
enabled: false
296292
k8s.namespace.uid:

receiver/k8sclusterreceiver/internal/node/nodes.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ func Transform(node *corev1.Node) *corev1.Node {
3636
Allocatable: node.Status.Allocatable,
3737
NodeInfo: corev1.NodeSystemInfo{
3838
KubeletVersion: node.Status.NodeInfo.KubeletVersion,
39-
KubeProxyVersion: node.Status.NodeInfo.KubeProxyVersion,
4039
ContainerRuntimeVersion: node.Status.NodeInfo.ContainerRuntimeVersion,
4140
OSImage: node.Status.NodeInfo.OSImage,
4241
OperatingSystem: node.Status.NodeInfo.OperatingSystem,
@@ -60,7 +59,6 @@ func RecordMetrics(mb *imetadata.MetricsBuilder, node *corev1.Node, ts pcommon.T
6059
rb.SetK8sNodeUID(string(node.UID))
6160
rb.SetK8sNodeName(node.Name)
6261
rb.SetK8sKubeletVersion(node.Status.NodeInfo.KubeletVersion)
63-
rb.SetK8sKubeproxyVersion(node.Status.NodeInfo.KubeProxyVersion)
6462

6563
mb.EmitForResource(imetadata.WithResource(rb.Emit()))
6664
}
@@ -114,7 +112,6 @@ func CustomMetrics(set receiver.CreateSettings, rb *metadata.ResourceBuilder, no
114112
rb.SetK8sNodeUID(string(node.UID))
115113
rb.SetK8sNodeName(node.Name)
116114
rb.SetK8sKubeletVersion(node.Status.NodeInfo.KubeletVersion)
117-
rb.SetK8sKubeproxyVersion(node.Status.NodeInfo.KubeProxyVersion)
118115
rb.SetOsType(node.Status.NodeInfo.OperatingSystem)
119116

120117
runtime, version := getContainerRuntimeInfo(node.Status.NodeInfo.ContainerRuntimeVersion)

0 commit comments

Comments
 (0)