You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/registry/attributes/k8s.md
+38-28Lines changed: 38 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@ Kubernetes resource attributes.
14
14
|---|---|---|---|---|
15
15
| <aid="k8s-cluster-name"href="#k8s-cluster-name">`k8s.cluster.name`</a> | string | The name of the cluster. |`opentelemetry-cluster`||
16
16
| <aid="k8s-cluster-uid"href="#k8s-cluster-uid">`k8s.cluster.uid`</a> | string | A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. [1]|`218fc5a9-a5f1-4b54-aa05-46717d0ab26d`||
17
-
| <aid="k8s-condition-state"href="#k8s-condition-state">`k8s.condition.state`</a> | string | The state of a condition |`true`; `false`; `unknown`||
18
17
| <aid="k8s-container-name"href="#k8s-container-name">`k8s.container.name`</a> | string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). |`redis`||
19
18
| <aid="k8s-container-restart-count"href="#k8s-container-restart-count">`k8s.container.restart_count`</a> | int | Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. |||
20
19
| <aid="k8s-container-status-last-terminated-reason"href="#k8s-container-status-last-terminated-reason">`k8s.container.status.last_terminated_reason`</a> | string | Last terminated reason of the Container. |`Evicted`; `Error`||
| <aid="k8s-namespace-name"href="#k8s-namespace-name">`k8s.namespace.name`</a> | string | The name of the namespace that the pod is running in. |`default`||
44
43
| <aid="k8s-namespace-phase"href="#k8s-namespace-phase">`k8s.namespace.phase`</a> | string | The phase of the K8s namespace. [12]|`active`; `terminating`||
45
44
| <aid="k8s-node-annotation"href="#k8s-node-annotation">`k8s.node.annotation.<key>`</a> | string | The annotation placed on the Node, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty. [13]|`0`; `` ||
46
-
| <aid="k8s-node-condition"href="#k8s-node-condition">`k8s.node.condition`</a> | string | The condition of a K8s Node. [14]|`Ready`; `DiskPressure`||
47
-
| <aid="k8s-node-label"href="#k8s-node-label">`k8s.node.label.<key>`</a> | string | The label placed on the Node, the `<key>` being the label name, the value being the label value, even if the value is empty. [15]|`arm64`; `` ||
45
+
| <aid="k8s-node-condition-reason"href="#k8s-node-condition-reason">`k8s.node.condition.reason`</a> | string | The reason for the condition's last transition [14]|`KubeletHasSufficientMemory`; `KubeletHasNoDiskPressure`; `KubeletHasSufficientPID`||
46
+
| <aid="k8s-node-condition-status"href="#k8s-node-condition-status">`k8s.node.condition.status`</a> | string | The status of the condition, one of True, False, Unknown. [15]|`true`; `false`; `unknown`||
47
+
| <aid="k8s-node-condition-type"href="#k8s-node-condition-type">`k8s.node.condition.type`</a> | string | The condition type of a K8s Node. [16]|`Ready`; `DiskPressure`||
48
+
| <aid="k8s-node-label"href="#k8s-node-label">`k8s.node.label.<key>`</a> | string | The label placed on the Node, the `<key>` being the label name, the value being the label value, even if the value is empty. [17]|`arm64`; `` ||
48
49
| <aid="k8s-node-name"href="#k8s-node-name">`k8s.node.name`</a> | string | The name of the Node. |`node-1`||
49
50
| <aid="k8s-node-uid"href="#k8s-node-uid">`k8s.node.uid`</a> | string | The UID of the Node. |`1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2`||
50
-
| <aid="k8s-pod-annotation"href="#k8s-pod-annotation">`k8s.pod.annotation.<key>`</a> | string | The annotation placed on the Pod, the `<key>` being the annotation name, the value being the annotation value. [16]|`true`; `x64`; `` ||
51
-
| <aid="k8s-pod-label"href="#k8s-pod-label">`k8s.pod.label.<key>`</a> | string | The label placed on the Pod, the `<key>` being the label name, the value being the label value. [17]|`my-app`; `x64`; `` ||
51
+
| <aid="k8s-pod-annotation"href="#k8s-pod-annotation">`k8s.pod.annotation.<key>`</a> | string | The annotation placed on the Pod, the `<key>` being the annotation name, the value being the annotation value. [18]|`true`; `x64`; `` ||
52
+
| <aid="k8s-pod-label"href="#k8s-pod-label">`k8s.pod.label.<key>`</a> | string | The label placed on the Pod, the `<key>` being the label name, the value being the label value. [19]|`my-app`; `x64`; `` ||
52
53
| <aid="k8s-pod-name"href="#k8s-pod-name">`k8s.pod.name`</a> | string | The name of the Pod. |`opentelemetry-pod-autoconf`||
53
54
| <aid="k8s-pod-uid"href="#k8s-pod-uid">`k8s.pod.uid`</a> | string | The UID of the Pod. |`275ecb36-5aa8-4c2a-9c47-d8bb681b9aff`||
54
-
| <aid="k8s-replicaset-annotation"href="#k8s-replicaset-annotation">`k8s.replicaset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the ReplicaSet. [18]|`k8s.replicaset.annotation.replicas=0`; `k8s.replicaset.annotation.data=`||
55
-
| <aid="k8s-replicaset-label"href="#k8s-replicaset-label">`k8s.replicaset.label.<key>`</a> | string | The label key-value pairs placed on the ReplicaSet. [19]|`k8s.replicaset.label.app=guestbook`; `k8s.replicaset.label.injected=`||
55
+
| <aid="k8s-replicaset-annotation"href="#k8s-replicaset-annotation">`k8s.replicaset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the ReplicaSet. [20]|`k8s.replicaset.annotation.replicas=0`; `k8s.replicaset.annotation.data=`||
56
+
| <aid="k8s-replicaset-label"href="#k8s-replicaset-label">`k8s.replicaset.label.<key>`</a> | string | The label key-value pairs placed on the ReplicaSet. [21]|`k8s.replicaset.label.app=guestbook`; `k8s.replicaset.label.injected=`||
56
57
| <aid="k8s-replicaset-name"href="#k8s-replicaset-name">`k8s.replicaset.name`</a> | string | The name of the ReplicaSet. |`opentelemetry`||
57
58
| <aid="k8s-replicaset-uid"href="#k8s-replicaset-uid">`k8s.replicaset.uid`</a> | string | The UID of the ReplicaSet. |`275ecb36-5aa8-4c2a-9c47-d8bb681b9aff`||
58
59
| <aid="k8s-replicationcontroller-name"href="#k8s-replicationcontroller-name">`k8s.replicationcontroller.name`</a> | string | The name of the replication controller. |`opentelemetry`||
59
60
| <aid="k8s-replicationcontroller-uid"href="#k8s-replicationcontroller-uid">`k8s.replicationcontroller.uid`</a> | string | The UID of the replication controller. |`275ecb36-5aa8-4c2a-9c47-d8bb681b9aff`||
60
61
| <aid="k8s-resourcequota-name"href="#k8s-resourcequota-name">`k8s.resourcequota.name`</a> | string | The name of the resource quota. |`opentelemetry`||
61
62
| <aid="k8s-resourcequota-uid"href="#k8s-resourcequota-uid">`k8s.resourcequota.uid`</a> | string | The UID of the resource quota. |`275ecb36-5aa8-4c2a-9c47-d8bb681b9aff`||
62
-
| <aid="k8s-statefulset-annotation"href="#k8s-statefulset-annotation">`k8s.statefulset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the StatefulSet. [20]|`k8s.statefulset.annotation.replicas=1`; `k8s.statefulset.annotation.data=`||
63
-
| <aid="k8s-statefulset-label"href="#k8s-statefulset-label">`k8s.statefulset.label.<key>`</a> | string | The label key-value pairs placed on the StatefulSet. [21]|`k8s.statefulset.label.app=guestbook`; `k8s.statefulset.label.injected=`||
63
+
| <aid="k8s-statefulset-annotation"href="#k8s-statefulset-annotation">`k8s.statefulset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the StatefulSet. [22]|`k8s.statefulset.annotation.replicas=1`; `k8s.statefulset.annotation.data=`||
64
+
| <aid="k8s-statefulset-label"href="#k8s-statefulset-label">`k8s.statefulset.label.<key>`</a> | string | The label key-value pairs placed on the StatefulSet. [23]|`k8s.statefulset.label.app=guestbook`; `k8s.statefulset.label.injected=`||
64
65
| <aid="k8s-statefulset-name"href="#k8s-statefulset-name">`k8s.statefulset.name`</a> | string | The name of the StatefulSet. |`opentelemetry`||
65
66
| <aid="k8s-statefulset-uid"href="#k8s-statefulset-uid">`k8s.statefulset.uid`</a> | string | The UID of the StatefulSet. |`275ecb36-5aa8-4c2a-9c47-d8bb681b9aff`||
66
67
| <aid="k8s-volume-name"href="#k8s-volume-name">`k8s.volume.name`</a> | string | The name of the K8s volume. |`volume0`||
@@ -129,17 +130,26 @@ conflict.
129
130
- An annotation `data` with empty string value SHOULD be recorded as
130
131
the `k8s.node.annotation.data` attribute with value `""`.
131
132
132
-
**[14]`k8s.node.condition`:** K8s Node conditions as described
133
+
**[14]`k8s.node.condition.reason`:** This attribute aligns with the `reason` field of the
- A label `kubernetes.io/arch` with value `arm64` SHOULD be recorded
138
148
as the `k8s.node.label.kubernetes.io/arch` attribute with value `"arm64"`.
139
149
- A label `data` with empty string value SHOULD be recorded as
140
150
the `k8s.node.label.data` attribute with value `""`.
141
151
142
-
**[16]`k8s.pod.annotation.<key>`:** Examples:
152
+
**[18]`k8s.pod.annotation.<key>`:** Examples:
143
153
144
154
- An annotation `kubernetes.io/enforce-mountable-secrets` with value `true` SHOULD be recorded as
145
155
the `k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets` attribute with value `"true"`.
@@ -148,7 +158,7 @@ by [K8s documentation](https://v1-32.docs.kubernetes.io/docs/reference/node/node
148
158
- An annotation `data` with empty string value SHOULD be recorded as
149
159
the `k8s.pod.annotation.data` attribute with value `""`.
150
160
151
-
**[17]`k8s.pod.label.<key>`:** Examples:
161
+
**[19]`k8s.pod.label.<key>`:** Examples:
152
162
153
163
- A label `app` with value `my-app` SHOULD be recorded as
154
164
the `k8s.pod.label.app` attribute with value `"my-app"`.
@@ -157,23 +167,13 @@ by [K8s documentation](https://v1-32.docs.kubernetes.io/docs/reference/node/node
157
167
- A label `data` with empty string value SHOULD be recorded as
158
168
the `k8s.pod.label.data` attribute with value `""`.
159
169
160
-
**[18]`k8s.replicaset.annotation.<key>`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
170
+
**[20]`k8s.replicaset.annotation.<key>`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
161
171
162
-
**[19]`k8s.replicaset.label.<key>`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
172
+
**[21]`k8s.replicaset.label.<key>`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
163
173
164
-
**[20]`k8s.statefulset.annotation.<key>`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
174
+
**[22]`k8s.statefulset.annotation.<key>`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
165
175
166
-
**[21]`k8s.statefulset.label.<key>`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
167
-
168
-
---
169
-
170
-
`k8s.condition.state` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
**[23]`k8s.statefulset.label.<key>`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
177
177
178
178
---
179
179
@@ -212,7 +212,17 @@ by [K8s documentation](https://v1-32.docs.kubernetes.io/docs/reference/node/node
212
212
213
213
---
214
214
215
-
`k8s.node.condition` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
215
+
`k8s.node.condition.status` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
`k8s.node.condition.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
0 commit comments