Container
Status:
출처: 문서
본문
Container
type: container
Description: 컨테이너 인스턴스예요.
경고
이 엔티티 정의에는 역할(role)이 없는 속성이 포함되어 있어요. 안정(Stable) 엔티티에는 정의된 역할이 없는 속성이 있으면 안 돼요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Other | container.id | | Recommended | string | Container ID. Usually a UUID, as for example used to identify Docker containers. The UUID might be abbreviated. | a3bf90e006b2
| Other | container.label.<key> | | Recommended | string | Container labels, <key> being the label name, the value being the label value. [1] | nginx
| Other | container.name | | Recommended | string | Container name used by container runtime. | opentelemetry-autoconf
| Other | oci.manifest.digest | | Recommended | string | The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. [2] | sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4
| Other | container.command | | Opt-In | string | The command used to run the container (i.e. the command name). [3] | otelcontribcol
| Other | container.command_args | | Opt-In | string[] | All the command arguments (including the command/executable itself) run by the container. | ["otelcontribcol", "--config", "config.yaml"]
| Other | container.command_line | | Opt-In | string | The full command run by the container as a single string representing the full command. | otelcontribcol --config config.yaml
[1] container.label.<key>: For example, a Docker container label app with value nginx SHOULD be recorded as the container.label.app attribute with value "nginx".
[2] oci.manifest.digest: Follows OCI Image Manifest Specification, and specifically the Digest property.
예시는 Example Image Manifest에서 찾을 수 있어요.
[3] container.command: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage.
Container Image
type: container.image
Description: 컨테이너에 사용되는 이미지예요.
경고
이 엔티티 정의에는 역할(role)이 없는 속성이 포함되어 있어요. 안정(Stable) 엔티티에는 정의된 역할이 없는 속성이 있으면 안 돼요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Other | container.image.id | | Recommended | string | Runtime specific image identifier. Usually a hash algorithm followed by a UUID. [4] | sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f
| Other | container.image.name | | Recommended | string | Name of the image the container was built on. | gcr.io/opentelemetry/operator
| Other | container.image.repo_digests | | Recommended | string[] | Repository digests of the container image as provided by the container runtime. [5] | ["example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"]
| Other | container.image.tags | | Recommended | string[] | Container image tags. An example can be found in Docker Image Inspect. Should be only the <tag> section of the full name for example from registry.example.com/my-org/my-image:<tag>. | ["v1.27.1", "3.5.7-0"]
[4] container.image.id: Docker defines a sha256 of the image ID; container.image.id corresponds to the Image field from the Docker container inspect API endpoint.
K8s는 digest가 포함된 컨테이너 레지스트리 저장소 링크를 "imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"처럼 정의해요.
이 ID는 컨테이너 런타임이 할당하며 환경에 따라 달라질 수 있어요. 다른 환경/런타임에서 동일한 이미지를 식별하는 것이 중요하다면 oci.manifest.digest를 사용하는 것을 고려해 보세요.
[5] container.image.repo_digests: Docker and CRI report those under the RepoDigests field.
Container Runtime
type: container.runtime
Description: 컨테이너를 실행하는 데 사용되는 런타임이에요.
Attributes: | | Role | Key | Stability | Requirement Level | Value Type | Description | Example Values
| Identity | container.runtime.name | | Recommended | string | The container runtime managing this container. | docker; containerd; rkt
| Identity | container.runtime.version | | Recommended | string | The version of the runtime of this process, as returned by the runtime without modification. | 1.0.0
| Description | container.runtime.description | | Recommended | string | A description about the runtime which could include, for example details about the CRI/API version being used or other customizations. | docker://19.3.1 - CRI: 1.22.0