diff --git a/semantic_conventions/resource/k8s.yaml b/semantic_conventions/resource/k8s.yaml index de95902e7ca..d25bcda2c10 100644 --- a/semantic_conventions/resource/k8s.yaml +++ b/semantic_conventions/resource/k8s.yaml @@ -10,6 +10,22 @@ groups: The name of the cluster. examples: ['opentelemetry-cluster'] + - id: k8s.node + prefix: k8s.node + brief: > + A Kubernetes Node object. + attributes: + - id: name + type: string + brief: > + The name of the Node. + examples: ['node-1'] + - id: uid + type: string + brief: > + The UID of the Node. + examples: ['1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2'] + - id: k8s.namespace prefix: k8s.namespace brief: > diff --git a/specification/resource/semantic_conventions/k8s.md b/specification/resource/semantic_conventions/k8s.md index 27ada74ebe6..ff510ad2e12 100644 --- a/specification/resource/semantic_conventions/k8s.md +++ b/specification/resource/semantic_conventions/k8s.md @@ -25,6 +25,19 @@ Kubernetes object, but "name" is usually more user friendly so can be also set. | `k8s.cluster.name` | string | The name of the cluster. | `opentelemetry-cluster` | No | +## Node + +**type:** `k8s.node` + +**Description:** A Kubernetes Node. + + +| Attribute | Type | Description | Examples | Required | +|---|---|---|---|---| +| `k8s.node.name` | string | The name of the Node. | `node-1` | No | +| `k8s.node.uid` | string | The UID of the Node. | `1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2` | No | + + ## Namespace Namespaces provide a scope for names. Names of objects need to be unique within