본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

K8s

원문 보기 위키 갱신

Kubernetes resource attributes.

출처: 문서

본문

  • Kubernetes Attributes
  • Deprecated Kubernetes Attributes

Kubernetes Attributes

Kubernetes resource attributes.

Attributes: | | Key | Stability | Value Type | Description | Example Values

| k8s.cluster.name | | string | The name of the cluster. | opentelemetry-cluster

| k8s.cluster.uid | | string | A pseudo-ID for the cluster, set to the UID of the kube-system namespace. [1] | 218fc5a9-a5f1-4b54-aa05-46717d0ab26d

| k8s.container.ephemeral_storage.fs_type | | string | The type of file system component for ephemeral storage. [2] | rootfs; logs

| k8s.container.name | | 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

| k8s.container.restart_count | | 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. |

| k8s.container.status.last_terminated_reason | | string | Last terminated reason of the Container. | Evicted; Error

| k8s.container.status.reason | | string | The reason for the container state. Corresponds to the reason field of the: K8s ContainerStateWaiting or K8s ContainerStateTerminated | ContainerCreating; CrashLoopBackOff; CreateContainerConfigError; ErrImagePull; ImagePullBackOff; OOMKilled; Completed; Error; ContainerCannotRun

| k8s.container.status.state | | string | The state of the container. K8s ContainerState | terminated; running; waiting

| k8s.cronjob.annotation.<key> | | string | The cronjob annotation placed on the CronJob, the <key> being the annotation name, the value being the annotation value. [3] | 4; ``

| k8s.cronjob.label.<key> | | string | The label placed on the CronJob, the <key> being the label name, the value being the label value. [4] | weekly; ``

| k8s.cronjob.name | | string | The name of the CronJob. | opentelemetry

| k8s.cronjob.uid | | string | The UID of the CronJob. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.daemonset.annotation.<key> | | string | The annotation placed on the DaemonSet, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [5] | 1; ``

| k8s.daemonset.label.<key> | | string | The label placed on the DaemonSet, the <key> being the label name, the value being the label value, even if the value is empty. [6] | guestbook; ``

| k8s.daemonset.name | | string | The name of the DaemonSet. | opentelemetry

| k8s.daemonset.uid | | string | The UID of the DaemonSet. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.deployment.annotation.<key> | | string | The annotation placed on the Deployment, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [7] | 1; ``

| k8s.deployment.label.<key> | | string | The label placed on the Deployment, the <key> being the label name, the value being the label value, even if the value is empty. [8] | guestbook; ``

| k8s.deployment.name | | string | The name of the Deployment. | opentelemetry

| k8s.deployment.uid | | string | The UID of the Deployment. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.hpa.metric.type | | string | The type of metric source for the horizontal pod autoscaler. [9] | Resource; ContainerResource

| k8s.hpa.name | | string | The name of the horizontal pod autoscaler. | opentelemetry

| k8s.hpa.scaletargetref.api_version | | string | The API version of the target resource to scale for the HorizontalPodAutoscaler. [10] | apps/v1; autoscaling/v2

| k8s.hpa.scaletargetref.kind | | string | The kind of the target resource to scale for the HorizontalPodAutoscaler. [11] | Deployment; StatefulSet

| k8s.hpa.scaletargetref.name | | string | The name of the target resource to scale for the HorizontalPodAutoscaler. [12] | my-deployment; my-statefulset

| k8s.hpa.uid | | string | The UID of the horizontal pod autoscaler. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.hugepage.size | | string | The size (identifier) of the K8s huge page. | 2Mi

| k8s.job.annotation.<key> | | string | The annotation placed on the Job, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [13] | 1; ``

| k8s.job.label.<key> | | string | The label placed on the Job, the <key> being the label name, the value being the label value, even if the value is empty. [14] | ci; ``

| k8s.job.name | | string | The name of the Job. | opentelemetry

| k8s.job.uid | | string | The UID of the Job. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.namespace.annotation.<key> | | string | The annotation placed on the Namespace, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [15] | 0; ``

| k8s.namespace.label.<key> | | string | The label placed on the Namespace, the <key> being the label name, the value being the label value, even if the value is empty. [16] | default; ``

| k8s.namespace.name | | string | The name of the namespace that the pod is running in. | default

| k8s.namespace.phase | | string | The phase of the K8s namespace. [17] | active; terminating

| k8s.node.annotation.<key> | | 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. [18] | 0; ``

| k8s.node.condition.status | | string | The status of the condition, one of True, False, Unknown. [19] | true; false; unknown

| k8s.node.condition.type | | string | The condition type of a K8s Node. [20] | Ready; DiskPressure

| k8s.node.label.<key> | | 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. [21] | arm64; ``

| k8s.node.name | | string | The name of the Node. | node-1

| k8s.node.system_container.name | | string | The name of the system container running on the K8s Node. | kubelet; runtime; pods; misc

| k8s.node.uid | | string | The UID of the Node. | 1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2

| k8s.persistentvolume.annotation.<key> | | string | The annotation placed on the PersistentVolume, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [22] | kubernetes.io/aws-ebs; ``

| k8s.persistentvolume.label.<key> | | string | The label placed on the PersistentVolume, the <key> being the label name, the value being the label value, even if the value is empty. [23] | ssd; ``

| k8s.persistentvolume.name | | string | The name of the PersistentVolume. | pv-data-01

| k8s.persistentvolume.reclaim_policy | | string | The reclaim policy of the PersistentVolume. [24] | Delete; Retain; Recycle

| k8s.persistentvolume.status.phase | | string | The phase of the PersistentVolume. [25] | Pending; Available; Bound; Released; Failed

| k8s.persistentvolume.uid | | string | The UID of the PersistentVolume. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.persistentvolumeclaim.annotation.<key> | | string | The annotation placed on the PersistentVolumeClaim, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [26] | kubernetes.io/aws-ebs; ``

| k8s.persistentvolumeclaim.label.<key> | | string | The label placed on the PersistentVolumeClaim, the <key> being the label name, the value being the label value, even if the value is empty. [27] | my-app; ``

| k8s.persistentvolumeclaim.name | | string | The name of the PersistentVolumeClaim. | pvc-data-01

| k8s.persistentvolumeclaim.status.phase | | string | The phase of the PersistentVolumeClaim. [28] | Pending; Bound; Lost

| k8s.persistentvolumeclaim.uid | | string | The UID of the PersistentVolumeClaim. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.pod.annotation.<key> | | string | The annotation placed on the Pod, the <key> being the annotation name, the value being the annotation value. [29] | true; x64; ``

| k8s.pod.hostname | | string | Specifies the hostname of the Pod. [30] | collector-gateway

| k8s.pod.ip | | string | IP address allocated to the Pod. [31] | 172.18.0.2

| k8s.pod.label.<key> | | string | The label placed on the Pod, the <key> being the label name, the value being the label value. [32] | my-app; x64; ``

| k8s.pod.name | | string | The name of the Pod. | opentelemetry-pod-autoconf

| k8s.pod.start_time | | string | The start timestamp of the Pod. [33] | 2025-12-04T08:41:03Z

| k8s.pod.status.phase | | string | The phase for the pod. Corresponds to the phase field of the: K8s PodStatus | Pending; Running

| k8s.pod.status.reason | | string | The reason for the pod state. Corresponds to the reason field of the: K8s PodStatus | Evicted; NodeAffinity

| k8s.pod.uid | | string | The UID of the Pod. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.replicaset.annotation.<key> | | string | The annotation placed on the ReplicaSet, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [34] | 0; ``

| k8s.replicaset.label.<key> | | string | The label placed on the ReplicaSet, the <key> being the label name, the value being the label value, even if the value is empty. [35] | guestbook; ``

| k8s.replicaset.name | | string | The name of the ReplicaSet. | opentelemetry

| k8s.replicaset.uid | | string | The UID of the ReplicaSet. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.replicationcontroller.name | | string | The name of the replication controller. | opentelemetry

| k8s.replicationcontroller.uid | | string | The UID of the replication controller. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.resourcequota.name | | string | The name of the resource quota. | opentelemetry

| k8s.resourcequota.resource_name | | string | The name of the K8s resource a resource quota defines. [36] | count/replicationcontrollers

| k8s.resourcequota.uid | | string | The UID of the resource quota. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.service.annotation.<key> | | string | The annotation placed on the Service, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [37] | true; ``

| k8s.service.endpoint.address_type | | string | The address type of the service endpoint. [38] | IPv4; IPv6

| k8s.service.endpoint.condition | | string | The condition of the service endpoint. [39] | ready; serving; terminating

| k8s.service.endpoint.zone | | string | The zone of the service endpoint. [40] | us-east-1a; us-west-2b; zone-a; ``

| k8s.service.label.<key> | | string | The label placed on the Service, the <key> being the label name, the value being the label value, even if the value is empty. [41] | my-service; ``

| k8s.service.name | | string | The name of the Service. | my-service

| k8s.service.publish_not_ready_addresses | | boolean | Whether the Service publishes not-ready endpoints. [42] | true; false

| k8s.service.selector.<key> | | string | The selector key-value pair placed on the Service, the <key> being the selector key, the value being the selector value. [43] | my-app; v1

| k8s.service.traffic_distribution | | string | The traffic distribution policy for the Service. [44] | PreferSameZone; PreferSameNode

| k8s.service.type | | string | The type of the Kubernetes Service. [45] | ClusterIP; NodePort; LoadBalancer

| k8s.service.uid | | string | The UID of the Service. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.statefulset.annotation.<key> | | string | The annotation placed on the StatefulSet, the <key> being the annotation name, the value being the annotation value, even if the value is empty. [46] | 1; ``

| k8s.statefulset.label.<key> | | string | The label placed on the StatefulSet, the <key> being the label name, the value being the label value, even if the value is empty. [47] | guestbook; ``

| k8s.statefulset.name | | string | The name of the StatefulSet. | opentelemetry

| k8s.statefulset.uid | | string | The UID of the StatefulSet. | 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff

| k8s.storageclass.name | | string | The name of K8s StorageClass object. | gold.storageclass.storage.k8s.io

| k8s.volume.name | | string | The name of the K8s volume. | volume0

| k8s.volume.type | | string | The type of the K8s volume. | emptyDir; persistentVolumeClaim

[1] k8s.cluster.uid: K8s doesn’t have support for obtaining a cluster ID. If this is ever added, we will recommend collecting the k8s.cluster.uid through the official APIs. In the meantime, we are able to use the uid of the kube-system namespace as a proxy for cluster ID. Read on for the rationale.

Every object created in a K8s cluster is assigned a distinct UID. The kube-system namespace is used by Kubernetes itself and will exist for the lifetime of the cluster. Using the uid of the kube-system namespace is a reasonable proxy for the K8s ClusterID as it will only change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are UUIDs as standardized by ISO/IEC 9834-8 and ITU-T X.667. Which states:

If generated according to one of the mechanisms defined in Rec. ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be different from all other UUIDs generated before 3603 A.D., or is extremely likely to be different (depending on the mechanism chosen).

Therefore, UIDs between clusters should be extremely unlikely to conflict.

[2] k8s.container.ephemeral_storage.fs_type: Eviction decisions based on ephemeral-storage resource limits are made based on the total container usage.

[3] k8s.cronjob.annotation.<key>: Examples:

  • An annotation retries with value 4 SHOULD be recorded as the k8s.cronjob.annotation.retries attribute with value "4".
  • An annotation data with empty string value SHOULD be recorded as the k8s.cronjob.annotation.data attribute with value "".

[4] k8s.cronjob.label.<key>: Examples:

  • A label type with value weekly SHOULD be recorded as the k8s.cronjob.label.type attribute with value "weekly".
  • A label automated with empty string value SHOULD be recorded as the k8s.cronjob.label.automated attribute with value "".

[5] k8s.daemonset.annotation.<key>: Examples:

  • An annotation replicas with value 1 SHOULD be recorded as the k8s.daemonset.annotation.replicas attribute with value "1".
  • An annotation data with empty string value SHOULD be recorded as the k8s.daemonset.annotation.data attribute with value "".

[6] k8s.daemonset.label.<key>: Examples:

  • A label app with value guestbook SHOULD be recorded as the k8s.daemonset.label.app attribute with value "guestbook".
  • A label injected with empty string value SHOULD be recorded as the k8s.daemonset.label.injected attribute with value "".

[7] k8s.deployment.annotation.<key>: Examples:

  • An annotation replicas with value 1 SHOULD be recorded as the k8s.deployment.annotation.replicas attribute with value "1".
  • An annotation data with empty string value SHOULD be recorded as the k8s.deployment.annotation.data attribute with value "".

[8] k8s.deployment.label.<key>: Examples:

  • A label app with value guestbook SHOULD be recorded as the k8s.deployment.label.app attribute with value "guestbook".
  • A label injected with empty string value SHOULD be recorded as the k8s.deployment.label.injected attribute with value "".

[9] k8s.hpa.metric.type: This attribute reflects the type field of spec.metrics[] in the HPA.

[10] k8s.hpa.scaletargetref.api_version: This maps to the apiVersion field in the scaleTargetRef of the HPA spec.

[11] k8s.hpa.scaletargetref.kind: This maps to the kind field in the scaleTargetRef of the HPA spec.

[12] k8s.hpa.scaletargetref.name: This maps to the name field in the scaleTargetRef of the HPA spec.

[13] k8s.job.annotation.<key>: Examples:

  • An annotation number with value 1 SHOULD be recorded as the k8s.job.annotation.number attribute with value "1".
  • An annotation data with empty string value SHOULD be recorded as the k8s.job.annotation.data attribute with value "".

[14] k8s.job.label.<key>: Examples:

  • A label jobtype with value ci SHOULD be recorded as the k8s.job.label.jobtype attribute with value "ci".
  • A label automated with empty string value SHOULD be recorded as the k8s.job.label.automated attribute with value "".

[15] k8s.namespace.annotation.<key>: Examples:

  • An annotation ttl with value 0 SHOULD be recorded as the k8s.namespace.annotation.ttl attribute with value "0".
  • An annotation data with empty string value SHOULD be recorded as the k8s.namespace.annotation.data attribute with value "".

[16] k8s.namespace.label.<key>: Examples:

  • A label kubernetes.io/metadata.name with value default SHOULD be recorded as the k8s.namespace.label.kubernetes.io/metadata.name attribute with value "default".
  • A label data with empty string value SHOULD be recorded as the k8s.namespace.label.data attribute with value "".

[17] k8s.namespace.phase: This attribute aligns with the phase field of the K8s NamespaceStatus

[18] k8s.node.annotation.<key>: Examples:

  • An annotation node.alpha.kubernetes.io/ttl with value 0 SHOULD be recorded as the k8s.node.annotation.node.alpha.kubernetes.io/ttl attribute with value "0".
  • An annotation data with empty string value SHOULD be recorded as the k8s.node.annotation.data attribute with value "".

[19] k8s.node.condition.status: This attribute aligns with the status field of the NodeCondition

[20] k8s.node.condition.type: K8s Node conditions as described by K8s documentation.

This attribute aligns with the type field of the NodeCondition

The set of possible values is not limited to those listed here. Managed Kubernetes environments, or custom controllers MAY introduce additional node condition types. When this occurs, the exact value as reported by the Kubernetes API SHOULD be used.

[21] k8s.node.label.<key>: Examples:

  • A label kubernetes.io/arch with value arm64 SHOULD be recorded as the k8s.node.label.kubernetes.io/arch attribute with value "arm64".
  • A label data with empty string value SHOULD be recorded as the k8s.node.label.data attribute with value "".

[22] k8s.persistentvolume.annotation.<key>: Examples:

  • An annotation pv.kubernetes.io/provisioned-by with value kubernetes.io/aws-ebs SHOULD be recorded as the k8s.persistentvolume.annotation.pv.kubernetes.io/provisioned-by attribute with value "kubernetes.io/aws-ebs".
  • An annotation data with empty string value SHOULD be recorded as the k8s.persistentvolume.annotation.data attribute with value "".

[23] k8s.persistentvolume.label.<key>: Examples:

  • A label type with value ssd SHOULD be recorded as the k8s.persistentvolume.label.type attribute with value "ssd".
  • A label data with empty string value SHOULD be recorded as the k8s.persistentvolume.label.data attribute with value "".

[24] k8s.persistentvolume.reclaim_policy: This attribute aligns with the persistentVolumeReclaimPolicy field of the K8s PersistentVolumeSpec.

[25] k8s.persistentvolume.status.phase: This attribute aligns with the phase field of the K8s PersistentVolumeStatus.

[26] k8s.persistentvolumeclaim.annotation.<key>: Examples:

  • An annotation volume.beta.kubernetes.io/storage-provisioner with value kubernetes.io/aws-ebs SHOULD be recorded as the k8s.persistentvolumeclaim.annotation.volume.beta.kubernetes.io/storage-provisioner attribute with value "kubernetes.io/aws-ebs".
  • An annotation data with empty string value SHOULD be recorded as the k8s.persistentvolumeclaim.annotation.data attribute with value "".

[27] k8s.persistentvolumeclaim.label.<key>: Examples:

  • A label app with value my-app SHOULD be recorded as the k8s.persistentvolumeclaim.label.app attribute with value "my-app".
  • A label data with empty string value SHOULD be recorded as the k8s.persistentvolumeclaim.label.data attribute with value "".

[28] k8s.persistentvolumeclaim.status.phase: This attribute aligns with the phase field of the K8s PersistentVolumeClaimStatus.

[29] k8s.pod.annotation.<key>: Examples:

  • An annotation kubernetes.io/enforce-mountable-secrets with value true SHOULD be recorded as the k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets attribute with value "true".
  • An annotation mycompany.io/arch with value x64 SHOULD be recorded as the k8s.pod.annotation.mycompany.io/arch attribute with value "x64".
  • An annotation data with empty string value SHOULD be recorded as the k8s.pod.annotation.data attribute with value "".

[30] k8s.pod.hostname: The K8s Pod spec has an optional hostname field, which can be used to specify a hostname. Refer to K8s docs for more information about this field.

This attribute aligns with the hostname field of the K8s PodSpec.

[31] k8s.pod.ip: This attribute aligns with the podIP field of the K8s PodStatus.

[32] k8s.pod.label.<key>: Examples:

  • A label app with value my-app SHOULD be recorded as the k8s.pod.label.app attribute with value "my-app".
  • A label mycompany.io/arch with value x64 SHOULD be recorded as the k8s.pod.label.mycompany.io/arch attribute with value "x64".
  • A label data with empty string value SHOULD be recorded as the k8s.pod.label.data attribute with value "".

[33] k8s.pod.start_time: Date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.

This attribute aligns with the startTime field of the K8s PodStatus, in ISO 8601 (RFC 3339 compatible) format.

[34] k8s.replicaset.annotation.<key>: Examples:

  • An annotation replicas with value 0 SHOULD be recorded as the k8s.replicaset.annotation.replicas attribute with value "0".
  • An annotation data with empty string value SHOULD be recorded as the k8s.replicaset.annotation.data attribute with value "".

[35] k8s.replicaset.label.<key>: Examples:

  • A label app with value guestbook SHOULD be recorded as the k8s.replicaset.label.app attribute with value "guestbook".
  • A label injected with empty string value SHOULD be recorded as the k8s.replicaset.label.injected attribute with value "".

[36] k8s.resourcequota.resource_name: The value for this attribute can be either the full count/<resource>[.<group>] string (e.g., count/deployments.apps, count/pods), or, for certain core Kubernetes resources, just the resource name (e.g., pods, services, configmaps). Both forms are supported by Kubernetes for object count quotas. See Kubernetes Resource Quotas documentation for more details.

[37] k8s.service.annotation.<key>: Examples:

  • An annotation prometheus.io/scrape with value true SHOULD be recorded as the k8s.service.annotation.prometheus.io/scrape attribute with value "true".
  • An annotation data with empty string value SHOULD be recorded as the k8s.service.annotation.data attribute with value "".

[38] k8s.service.endpoint.address_type: The network address family or type of the endpoint. This attribute aligns with the addressType field of the K8s EndpointSlice. It is used to differentiate metrics when a Service is backed by multiple address types (e.g., in dual-stack clusters).

[39] k8s.service.endpoint.condition: The current operational condition of the service endpoint. An endpoint can have multiple conditions set at once (e.g., both serving and terminating during rollout). This attribute aligns with the condition fields in the K8s EndpointSlice.

[40] k8s.service.endpoint.zone: The zone where the endpoint is located, typically corresponding to a failure domain. This attribute aligns with the zone field of endpoints in the K8s EndpointSlice. It enables zone-aware monitoring of service endpoint distribution and supports features like Topology Aware Routing.

If the zone is not populated (e.g., nodes without the topology.kubernetes.io/zone label), the attribute value will be an empty string.

[41] k8s.service.label.<key>: Examples:

  • A label app with value my-service SHOULD be recorded as the k8s.service.label.app attribute with value "my-service".
  • A label data with empty string value SHOULD be recorded as the k8s.service.label.data attribute with value "".

[42] k8s.service.publish_not_ready_addresses: Whether the Service is configured to publish endpoints before the pods are ready. This attribute is typically used to indicate that a Service (such as a headless Service for a StatefulSet) allows peer discovery before pods pass their readiness probes. It aligns with the publishNotReadyAddresses field of the K8s ServiceSpec.

[43] k8s.service.selector.<key>: These selectors are used to correlate with pod labels. Each selector key-value pair becomes a separate attribute.

Examples:

  • A selector app=my-app SHOULD be recorded as the k8s.service.selector.app attribute with value "my-app".
  • A selector version=v1 SHOULD be recorded as the k8s.service.selector.version attribute with value "v1".

[44] k8s.service.traffic_distribution: Specifies how traffic is distributed to endpoints for this Service. This attribute aligns with the trafficDistribution field of the K8s ServiceSpec. Known values include PreferSameZone (prefer endpoints in the same zone as the client) and PreferSameNode (prefer endpoints on the same node, fallback to same zone, then cluster-wide). If this field is not set on the Service, the attribute SHOULD NOT be emitted. When not set, Kubernetes distributes traffic evenly across all endpoints cluster-wide.

[45] k8s.service.type: This attribute aligns with the type field of the K8s ServiceSpec.

[46] k8s.statefulset.annotation.<key>: Examples:

  • An annotation replicas with value 1 SHOULD be recorded as the k8s.statefulset.annotation.replicas attribute with value "1".
  • An annotation data with empty string value SHOULD be recorded as the k8s.statefulset.annotation.data attribute with value "".

[47] k8s.statefulset.label.<key>: Examples:

  • A label app with value guestbook SHOULD be recorded as the k8s.statefulset.label.app attribute with value "guestbook".
  • A label injected with empty string value SHOULD be recorded as the k8s.statefulset.label.injected attribute with value "".

k8s.container.ephemeral_storage.fs_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. | | Value | Description | Stability

| logs | For the container’s log files usage (stdout/stderr). |

| rootfs | For the container’s writable layer usage. |

k8s.container.status.reason 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. | | Value | Description | Stability

| Completed | The container has completed execution. |

| ContainerCannotRun | The container cannot run. |

| ContainerCreating | The container is being created. |

| CrashLoopBackOff | The container is in a crash loop back off state. |

| CreateContainerConfigError | There was an error creating the container configuration. |

| ErrImagePull | There was an error pulling the container image. |

| Error | There was an error with the container. |

| ImagePullBackOff | The container image pull is in back off state. |

| OOMKilled | The container was killed due to out of memory. |

k8s.container.status.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. | | Value | Description | Stability

| running | The container is running. |

| terminated | The container has terminated. |

| waiting | The container is waiting. |

k8s.namespace.phase 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. | | Value | Description | Stability

| active | Active namespace phase as described by K8s API |

| terminating | Terminating namespace phase as described by K8s API |

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. | | Value | Description | Stability

| false | condition_false |

| true | condition_true |

| unknown | condition_unknown |

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. | | Value | Description | Stability

| DiskPressure | Pressure exists on the disk size—that is, if the disk capacity is low |

| MemoryPressure | Pressure exists on the node memory—that is, if the node memory is low |

| NetworkUnavailable | The network for the node is not correctly configured |

| PIDPressure | Pressure exists on the processes—that is, if there are too many processes on the node |

| Ready | The node is healthy and ready to accept pods |

k8s.persistentvolume.reclaim_policy 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. | | Value | Description | Stability

| Delete | The volume will be deleted when released from its claim. |

| Recycle | The volume will be recycled (basic scrub) when released from its claim. |

| Retain | The volume will be retained when released from its claim. |

k8s.persistentvolume.status.phase 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. | | Value | Description | Stability

| Available | The volume is available and not yet bound to a claim. |

| Bound | The volume is bound to a claim. |

| Failed | The volume has failed its automatic reclamation. |

| Pending | The volume is being provisioned. |

| Released | The claim has been deleted but the volume is not yet available. |

k8s.persistentvolumeclaim.status.phase 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. | | Value | Description | Stability

| Bound | The claim is bound to a volume. |

| Lost | The claim has lost its underlying volume (the volume does not exist anymore). |

| Pending | The claim has not yet been bound to a volume. |

k8s.pod.status.phase 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. | | Value | Description | Stability

| Failed | All containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system). |

| Pending | The pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host. |

| Running | The pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted. |

| Succeeded | All containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers. |

| Unknown | For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. |

k8s.pod.status.reason 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. | | Value | Description | Stability

| Evicted | The pod is evicted. |

| NodeAffinity | The pod is in a status because of its node affinity |

| NodeLost | The reason on a pod when its state cannot be confirmed as kubelet is unresponsive on the node it is (was) running. |

| Shutdown | The node is shutdown |

| UnexpectedAdmissionError | The pod was rejected admission to the node because of an error during admission that could not be categorized. |

k8s.service.endpoint.address_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. | | Value | Description | Stability

| FQDN | FQDN address type |

| IPv4 | IPv4 address type |

| IPv6 | IPv6 address type |

k8s.service.endpoint.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. | | Value | Description | Stability

| ready | The endpoint is ready to receive new connections. |

| serving | The endpoint is currently handling traffic. |

| terminating | The endpoint is in the process of shutting down. |

k8s.service.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. | | Value | Description | Stability

| ClusterIP | ClusterIP service type |

| ExternalName | ExternalName service type |

| LoadBalancer | LoadBalancer service type |

| NodePort | NodePort service type |

k8s.volume.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. | | Value | Description | Stability

| configMap | A configMap volume |

| downwardAPI | A downwardAPI volume |

| emptyDir | An emptyDir volume |

| local | A local volume |

| persistentVolumeClaim | A persistentVolumeClaim volume |

| secret | A secret volume |

Deprecated Kubernetes Attributes

Describes deprecated K8s attributes.

Attributes: | | Key | Stability | Value Type | Description | Example Values

| k8s.pod.labels.<key> | Replaced by k8s.pod.label. | string | Deprecated, use k8s.pod.label instead. | my-app