-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/k8scluster] Add Node resource attributes #30343
[receiver/k8scluster] Add Node resource attributes #30343
Conversation
d10af64
to
523ab3c
Compare
@@ -162,6 +162,21 @@ resource_attributes: | |||
type: string | |||
enabled: false | |||
|
|||
k8s.container_runtime.version: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be a little closer to the existing container semconv I think this should be k8s.container.runtime.version
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm given we have prefix containerd://
maybe we can actually do:
container.runtime = containerd
container.runtime.version = 1.2.23
This would be more aligned to the doc you linked.
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix is added in Kubelet here https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/nodestatus/setters.go#L412
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, this is how it looks when using kind:
k8s_node_allocatable_cpu_{container_runtime="containerd", container_runtime_version="1.6.9", k8s_kubelet_version="v1.25.3", k8s_node_name="kind-control-plane", k8s_node_uid="29b8a758-ac58-45e7-9091-b9ed2e285be9", os_description="Ubuntu 22.04.1 LTS", os_version="6.6.10-arch1-1"}
4960f74
to
a5e2694
Compare
a5e2694
to
9968a41
Compare
) **Description:** I would like to use k8s cluster receiver to get more information about Node, such as Container Runtime Version, OS version and OS description. This is how it looks when using kind: ``` k8s_node_allocatable_cpu_{container_runtime="containerd", container_runtime_version="1.6.9", k8s_kubelet_version="v1.25.3", k8s_node_name="kind-control-plane", k8s_node_uid="29b8a758-ac58-45e7-9091-b9ed2e285be9", os_description="Ubuntu 22.04.1 LTS", os_version="6.6.10-arch1-1"} ``` **Link to tracking Issue:** open-telemetry#30342
Description:
I would like to use k8s cluster receiver to get more information about Node, such as Container Runtime Version, OS version and OS description.
This is how it looks when using kind:
Link to tracking Issue:
#30342
Testing:
Documentation: