[k8s] Introduce semantic conventions for k8s DaemonSet labels and annotations (#2170)
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
This commit is contained in:
parent
5abb2e3c0e
commit
4a023fc5a7
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Use this changelog template to create an entry for release notes.
|
||||||
|
#
|
||||||
|
# If your change doesn't affect end users you should instead start
|
||||||
|
# your pull request title with [chore] or use the "Skip Changelog" label.
|
||||||
|
|
||||||
|
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
|
||||||
|
change_type: enhancement
|
||||||
|
|
||||||
|
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
|
||||||
|
component: k8s
|
||||||
|
|
||||||
|
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
|
||||||
|
note: "Introduce semantic conventions for k8s DaemonSet labels and annotations"
|
||||||
|
|
||||||
|
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
|
||||||
|
# The values here must be integers.
|
||||||
|
issues: [2136]
|
||||||
|
|
||||||
|
# (Optional) One or more lines of additional information to render under the primary note.
|
||||||
|
# These lines will be padded with 2 spaces and then inserted directly into the document.
|
||||||
|
# Use pipe (|) for multiline entries.
|
||||||
|
subtext:
|
||||||
|
|
@ -21,40 +21,42 @@ Kubernetes resource attributes.
|
||||||
| <a id="k8s-cronjob-label" href="#k8s-cronjob-label">`k8s.cronjob.label.<key>`</a> | string | The label placed on the CronJob, the `<key>` being the label name, the value being the label value. [3] | `weekly`; `` |  |
|
| <a id="k8s-cronjob-label" href="#k8s-cronjob-label">`k8s.cronjob.label.<key>`</a> | string | The label placed on the CronJob, the `<key>` being the label name, the value being the label value. [3] | `weekly`; `` |  |
|
||||||
| <a id="k8s-cronjob-name" href="#k8s-cronjob-name">`k8s.cronjob.name`</a> | string | The name of the CronJob. | `opentelemetry` |  |
|
| <a id="k8s-cronjob-name" href="#k8s-cronjob-name">`k8s.cronjob.name`</a> | string | The name of the CronJob. | `opentelemetry` |  |
|
||||||
| <a id="k8s-cronjob-uid" href="#k8s-cronjob-uid">`k8s.cronjob.uid`</a> | string | The UID of the CronJob. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-cronjob-uid" href="#k8s-cronjob-uid">`k8s.cronjob.uid`</a> | string | The UID of the CronJob. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
|
| <a id="k8s-daemonset-annotation" href="#k8s-daemonset-annotation">`k8s.daemonset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the DaemonSet. [4] | `k8s.daemonset.annotation.replicas=1`; `k8s.daemonset.annotation.data=` |  |
|
||||||
|
| <a id="k8s-daemonset-label" href="#k8s-daemonset-label">`k8s.daemonset.label.<key>`</a> | string | The label key-value pairs placed on the DaemonSet. [5] | `k8s.daemonset.label.app=guestbook`; `k8s.daemonset.label.injected=` |  |
|
||||||
| <a id="k8s-daemonset-name" href="#k8s-daemonset-name">`k8s.daemonset.name`</a> | string | The name of the DaemonSet. | `opentelemetry` |  |
|
| <a id="k8s-daemonset-name" href="#k8s-daemonset-name">`k8s.daemonset.name`</a> | string | The name of the DaemonSet. | `opentelemetry` |  |
|
||||||
| <a id="k8s-daemonset-uid" href="#k8s-daemonset-uid">`k8s.daemonset.uid`</a> | string | The UID of the DaemonSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-daemonset-uid" href="#k8s-daemonset-uid">`k8s.daemonset.uid`</a> | string | The UID of the DaemonSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-deployment-annotation" href="#k8s-deployment-annotation">`k8s.deployment.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Deployment. [4] | `k8s.deployment.annotation.replicas=1`; `k8s.deployment.annotation.data=` |  |
|
| <a id="k8s-deployment-annotation" href="#k8s-deployment-annotation">`k8s.deployment.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Deployment. [6] | `k8s.deployment.annotation.replicas=1`; `k8s.deployment.annotation.data=` |  |
|
||||||
| <a id="k8s-deployment-label" href="#k8s-deployment-label">`k8s.deployment.label.<key>`</a> | string | The label key-value pairs placed on the Deployment. [5] | `k8s.deployment.label.app=guestbook`; `k8s.deployment.label.injected=` |  |
|
| <a id="k8s-deployment-label" href="#k8s-deployment-label">`k8s.deployment.label.<key>`</a> | string | The label key-value pairs placed on the Deployment. [7] | `k8s.deployment.label.app=guestbook`; `k8s.deployment.label.injected=` |  |
|
||||||
| <a id="k8s-deployment-name" href="#k8s-deployment-name">`k8s.deployment.name`</a> | string | The name of the Deployment. | `opentelemetry` |  |
|
| <a id="k8s-deployment-name" href="#k8s-deployment-name">`k8s.deployment.name`</a> | string | The name of the Deployment. | `opentelemetry` |  |
|
||||||
| <a id="k8s-deployment-uid" href="#k8s-deployment-uid">`k8s.deployment.uid`</a> | string | The UID of the Deployment. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-deployment-uid" href="#k8s-deployment-uid">`k8s.deployment.uid`</a> | string | The UID of the Deployment. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-hpa-name" href="#k8s-hpa-name">`k8s.hpa.name`</a> | string | The name of the horizontal pod autoscaler. | `opentelemetry` |  |
|
| <a id="k8s-hpa-name" href="#k8s-hpa-name">`k8s.hpa.name`</a> | string | The name of the horizontal pod autoscaler. | `opentelemetry` |  |
|
||||||
| <a id="k8s-hpa-uid" href="#k8s-hpa-uid">`k8s.hpa.uid`</a> | string | The UID of the horizontal pod autoscaler. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-hpa-uid" href="#k8s-hpa-uid">`k8s.hpa.uid`</a> | string | The UID of the horizontal pod autoscaler. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-job-annotation" href="#k8s-job-annotation">`k8s.job.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Job. [6] | `k8s.job.annotation.number=1`; `k8s.job.annotation.data=` |  |
|
| <a id="k8s-job-annotation" href="#k8s-job-annotation">`k8s.job.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Job. [8] | `k8s.job.annotation.number=1`; `k8s.job.annotation.data=` |  |
|
||||||
| <a id="k8s-job-label" href="#k8s-job-label">`k8s.job.label.<key>`</a> | string | The label key-value pairs placed on the Job. [7] | `k8s.job.label.jobtype=ci`; `k8s.job.label.automated=` |  |
|
| <a id="k8s-job-label" href="#k8s-job-label">`k8s.job.label.<key>`</a> | string | The label key-value pairs placed on the Job. [9] | `k8s.job.label.jobtype=ci`; `k8s.job.label.automated=` |  |
|
||||||
| <a id="k8s-job-name" href="#k8s-job-name">`k8s.job.name`</a> | string | The name of the Job. | `opentelemetry` |  |
|
| <a id="k8s-job-name" href="#k8s-job-name">`k8s.job.name`</a> | string | The name of the Job. | `opentelemetry` |  |
|
||||||
| <a id="k8s-job-uid" href="#k8s-job-uid">`k8s.job.uid`</a> | string | The UID of the Job. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-job-uid" href="#k8s-job-uid">`k8s.job.uid`</a> | string | The UID of the Job. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-namespace-annotation" href="#k8s-namespace-annotation">`k8s.namespace.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Namespace. [8] | `k8s.namespace.annotation.ttl=0`; `k8s.namespace.annotation.data=` |  |
|
| <a id="k8s-namespace-annotation" href="#k8s-namespace-annotation">`k8s.namespace.annotation.<key>`</a> | string | The annotation key-value pairs placed on the Namespace. [10] | `k8s.namespace.annotation.ttl=0`; `k8s.namespace.annotation.data=` |  |
|
||||||
| <a id="k8s-namespace-label" href="#k8s-namespace-label">`k8s.namespace.label.<key>`</a> | string | The label key-value pairs placed on the Namespace. [9] | `k8s.namespace.label.kubernetes.io/metadata.name=default`; `k8s.namespace.label.data=` |  |
|
| <a id="k8s-namespace-label" href="#k8s-namespace-label">`k8s.namespace.label.<key>`</a> | string | The label key-value pairs placed on the Namespace. [11] | `k8s.namespace.label.kubernetes.io/metadata.name=default`; `k8s.namespace.label.data=` |  |
|
||||||
| <a id="k8s-namespace-name" href="#k8s-namespace-name">`k8s.namespace.name`</a> | string | The name of the namespace that the pod is running in. | `default` |  |
|
| <a id="k8s-namespace-name" href="#k8s-namespace-name">`k8s.namespace.name`</a> | string | The name of the namespace that the pod is running in. | `default` |  |
|
||||||
| <a id="k8s-namespace-phase" href="#k8s-namespace-phase">`k8s.namespace.phase`</a> | string | The phase of the K8s namespace. [10] | `active`; `terminating` |  |
|
| <a id="k8s-namespace-phase" href="#k8s-namespace-phase">`k8s.namespace.phase`</a> | string | The phase of the K8s namespace. [12] | `active`; `terminating` |  |
|
||||||
| <a id="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. [11] | `0`; `` |  |
|
| <a id="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`; `` |  |
|
||||||
| <a id="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. [12] | `arm64`; `` |  |
|
| <a id="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. [14] | `arm64`; `` |  |
|
||||||
| <a id="k8s-node-name" href="#k8s-node-name">`k8s.node.name`</a> | string | The name of the Node. | `node-1` |  |
|
| <a id="k8s-node-name" href="#k8s-node-name">`k8s.node.name`</a> | string | The name of the Node. | `node-1` |  |
|
||||||
| <a id="k8s-node-uid" href="#k8s-node-uid">`k8s.node.uid`</a> | string | The UID of the Node. | `1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2` |  |
|
| <a id="k8s-node-uid" href="#k8s-node-uid">`k8s.node.uid`</a> | string | The UID of the Node. | `1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2` |  |
|
||||||
| <a id="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. [13] | `true`; `x64`; `` |  |
|
| <a id="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. [15] | `true`; `x64`; `` |  |
|
||||||
| <a id="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. [14] | `my-app`; `x64`; `` |  |
|
| <a id="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. [16] | `my-app`; `x64`; `` |  |
|
||||||
| <a id="k8s-pod-name" href="#k8s-pod-name">`k8s.pod.name`</a> | string | The name of the Pod. | `opentelemetry-pod-autoconf` |  |
|
| <a id="k8s-pod-name" href="#k8s-pod-name">`k8s.pod.name`</a> | string | The name of the Pod. | `opentelemetry-pod-autoconf` |  |
|
||||||
| <a id="k8s-pod-uid" href="#k8s-pod-uid">`k8s.pod.uid`</a> | string | The UID of the Pod. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-pod-uid" href="#k8s-pod-uid">`k8s.pod.uid`</a> | string | The UID of the Pod. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-replicaset-annotation" href="#k8s-replicaset-annotation">`k8s.replicaset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the ReplicaSet. [15] | `k8s.replicaset.annotation.replicas=0`; `k8s.replicaset.annotation.data=` |  |
|
| <a id="k8s-replicaset-annotation" href="#k8s-replicaset-annotation">`k8s.replicaset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the ReplicaSet. [17] | `k8s.replicaset.annotation.replicas=0`; `k8s.replicaset.annotation.data=` |  |
|
||||||
| <a id="k8s-replicaset-label" href="#k8s-replicaset-label">`k8s.replicaset.label.<key>`</a> | string | The label key-value pairs placed on the ReplicaSet. [16] | `k8s.replicaset.label.app=guestbook`; `k8s.replicaset.label.injected=` |  |
|
| <a id="k8s-replicaset-label" href="#k8s-replicaset-label">`k8s.replicaset.label.<key>`</a> | string | The label key-value pairs placed on the ReplicaSet. [18] | `k8s.replicaset.label.app=guestbook`; `k8s.replicaset.label.injected=` |  |
|
||||||
| <a id="k8s-replicaset-name" href="#k8s-replicaset-name">`k8s.replicaset.name`</a> | string | The name of the ReplicaSet. | `opentelemetry` |  |
|
| <a id="k8s-replicaset-name" href="#k8s-replicaset-name">`k8s.replicaset.name`</a> | string | The name of the ReplicaSet. | `opentelemetry` |  |
|
||||||
| <a id="k8s-replicaset-uid" href="#k8s-replicaset-uid">`k8s.replicaset.uid`</a> | string | The UID of the ReplicaSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-replicaset-uid" href="#k8s-replicaset-uid">`k8s.replicaset.uid`</a> | string | The UID of the ReplicaSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-replicationcontroller-name" href="#k8s-replicationcontroller-name">`k8s.replicationcontroller.name`</a> | string | The name of the replication controller. | `opentelemetry` |  |
|
| <a id="k8s-replicationcontroller-name" href="#k8s-replicationcontroller-name">`k8s.replicationcontroller.name`</a> | string | The name of the replication controller. | `opentelemetry` |  |
|
||||||
| <a id="k8s-replicationcontroller-uid" href="#k8s-replicationcontroller-uid">`k8s.replicationcontroller.uid`</a> | string | The UID of the replication controller. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-replicationcontroller-uid" href="#k8s-replicationcontroller-uid">`k8s.replicationcontroller.uid`</a> | string | The UID of the replication controller. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-resourcequota-name" href="#k8s-resourcequota-name">`k8s.resourcequota.name`</a> | string | The name of the resource quota. | `opentelemetry` |  |
|
| <a id="k8s-resourcequota-name" href="#k8s-resourcequota-name">`k8s.resourcequota.name`</a> | string | The name of the resource quota. | `opentelemetry` |  |
|
||||||
| <a id="k8s-resourcequota-uid" href="#k8s-resourcequota-uid">`k8s.resourcequota.uid`</a> | string | The UID of the resource quota. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-resourcequota-uid" href="#k8s-resourcequota-uid">`k8s.resourcequota.uid`</a> | string | The UID of the resource quota. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-statefulset-annotation" href="#k8s-statefulset-annotation">`k8s.statefulset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the StatefulSet. [17] | `k8s.statefulset.annotation.replicas=1`; `k8s.statefulset.annotation.data=` |  |
|
| <a id="k8s-statefulset-annotation" href="#k8s-statefulset-annotation">`k8s.statefulset.annotation.<key>`</a> | string | The annotation key-value pairs placed on the StatefulSet. [19] | `k8s.statefulset.annotation.replicas=1`; `k8s.statefulset.annotation.data=` |  |
|
||||||
| <a id="k8s-statefulset-label" href="#k8s-statefulset-label">`k8s.statefulset.label.<key>`</a> | string | The label key-value pairs placed on the StatefulSet. [18] | `k8s.statefulset.label.app=guestbook`; `k8s.statefulset.label.injected=` |  |
|
| <a id="k8s-statefulset-label" href="#k8s-statefulset-label">`k8s.statefulset.label.<key>`</a> | string | The label key-value pairs placed on the StatefulSet. [20] | `k8s.statefulset.label.app=guestbook`; `k8s.statefulset.label.injected=` |  |
|
||||||
| <a id="k8s-statefulset-name" href="#k8s-statefulset-name">`k8s.statefulset.name`</a> | string | The name of the StatefulSet. | `opentelemetry` |  |
|
| <a id="k8s-statefulset-name" href="#k8s-statefulset-name">`k8s.statefulset.name`</a> | string | The name of the StatefulSet. | `opentelemetry` |  |
|
||||||
| <a id="k8s-statefulset-uid" href="#k8s-statefulset-uid">`k8s.statefulset.uid`</a> | string | The UID of the StatefulSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
| <a id="k8s-statefulset-uid" href="#k8s-statefulset-uid">`k8s.statefulset.uid`</a> | string | The UID of the StatefulSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| <a id="k8s-volume-name" href="#k8s-volume-name">`k8s.volume.name`</a> | string | The name of the K8s volume. | `volume0` |  |
|
| <a id="k8s-volume-name" href="#k8s-volume-name">`k8s.volume.name`</a> | string | The name of the K8s volume. | `volume0` |  |
|
||||||
|
|
@ -97,36 +99,40 @@ conflict.
|
||||||
- A label `automated` with empty string value SHOULD be recorded as
|
- A label `automated` with empty string value SHOULD be recorded as
|
||||||
the `k8s.cronjob.label.automated` attribute with value `""`.
|
the `k8s.cronjob.label.automated` attribute with value `""`.
|
||||||
|
|
||||||
**[4] `k8s.deployment.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
**[4] `k8s.daemonset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
**[5] `k8s.deployment.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
**[5] `k8s.daemonset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
**[6] `k8s.job.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
**[6] `k8s.deployment.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
**[7] `k8s.job.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
**[7] `k8s.deployment.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
**[8] `k8s.namespace.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
**[8] `k8s.job.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
**[9] `k8s.namespace.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
**[9] `k8s.job.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
**[10] `k8s.namespace.phase`:** This attribute aligns with the `phase` field of the
|
**[10] `k8s.namespace.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
|
**[11] `k8s.namespace.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
|
**[12] `k8s.namespace.phase`:** This attribute aligns with the `phase` field of the
|
||||||
[K8s NamespaceStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core)
|
[K8s NamespaceStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core)
|
||||||
|
|
||||||
**[11] `k8s.node.annotation`:** Examples:
|
**[13] `k8s.node.annotation`:** Examples:
|
||||||
|
|
||||||
- An annotation `node.alpha.kubernetes.io/ttl` with value `0` SHOULD be recorded as
|
- 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"`.
|
the `k8s.node.annotation.node.alpha.kubernetes.io/ttl` attribute with value `"0"`.
|
||||||
- An annotation `data` with empty string value SHOULD be recorded as
|
- An annotation `data` with empty string value SHOULD be recorded as
|
||||||
the `k8s.node.annotation.data` attribute with value `""`.
|
the `k8s.node.annotation.data` attribute with value `""`.
|
||||||
|
|
||||||
**[12] `k8s.node.label`:** Examples:
|
**[14] `k8s.node.label`:** Examples:
|
||||||
|
|
||||||
- A label `kubernetes.io/arch` with value `arm64` SHOULD be recorded
|
- A label `kubernetes.io/arch` with value `arm64` SHOULD be recorded
|
||||||
as the `k8s.node.label.kubernetes.io/arch` attribute with value `"arm64"`.
|
as the `k8s.node.label.kubernetes.io/arch` attribute with value `"arm64"`.
|
||||||
- A label `data` with empty string value SHOULD be recorded as
|
- A label `data` with empty string value SHOULD be recorded as
|
||||||
the `k8s.node.label.data` attribute with value `""`.
|
the `k8s.node.label.data` attribute with value `""`.
|
||||||
|
|
||||||
**[13] `k8s.pod.annotation`:** Examples:
|
**[15] `k8s.pod.annotation`:** Examples:
|
||||||
|
|
||||||
- An annotation `kubernetes.io/enforce-mountable-secrets` with value `true` SHOULD be recorded as
|
- 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"`.
|
the `k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets` attribute with value `"true"`.
|
||||||
|
|
@ -135,7 +141,7 @@ conflict.
|
||||||
- An annotation `data` with empty string value SHOULD be recorded as
|
- An annotation `data` with empty string value SHOULD be recorded as
|
||||||
the `k8s.pod.annotation.data` attribute with value `""`.
|
the `k8s.pod.annotation.data` attribute with value `""`.
|
||||||
|
|
||||||
**[14] `k8s.pod.label`:** Examples:
|
**[16] `k8s.pod.label`:** Examples:
|
||||||
|
|
||||||
- A label `app` with value `my-app` SHOULD be recorded as
|
- A label `app` with value `my-app` SHOULD be recorded as
|
||||||
the `k8s.pod.label.app` attribute with value `"my-app"`.
|
the `k8s.pod.label.app` attribute with value `"my-app"`.
|
||||||
|
|
@ -144,13 +150,13 @@ conflict.
|
||||||
- A label `data` with empty string value SHOULD be recorded as
|
- A label `data` with empty string value SHOULD be recorded as
|
||||||
the `k8s.pod.label.data` attribute with value `""`.
|
the `k8s.pod.label.data` attribute with value `""`.
|
||||||
|
|
||||||
**[15] `k8s.replicaset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
**[17] `k8s.replicaset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
**[16] `k8s.replicaset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
**[18] `k8s.replicaset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
**[17] `k8s.statefulset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
**[19] `k8s.statefulset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
**[18] `k8s.statefulset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
**[20] `k8s.statefulset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -348,6 +348,12 @@ A DaemonSet ensures that all (or some) Nodes run a copy of a Pod.
|
||||||
|---|---|---|---|---|---|
|
|---|---|---|---|---|---|
|
||||||
| [`k8s.daemonset.name`](/docs/attributes-registry/k8s.md) | string | The name of the DaemonSet. | `opentelemetry` | `Recommended` |  |
|
| [`k8s.daemonset.name`](/docs/attributes-registry/k8s.md) | string | The name of the DaemonSet. | `opentelemetry` | `Recommended` |  |
|
||||||
| [`k8s.daemonset.uid`](/docs/attributes-registry/k8s.md) | string | The UID of the DaemonSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | `Recommended` |  |
|
| [`k8s.daemonset.uid`](/docs/attributes-registry/k8s.md) | string | The UID of the DaemonSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | `Recommended` |  |
|
||||||
|
| [`k8s.daemonset.annotation.<key>`](/docs/attributes-registry/k8s.md) | string | The annotation key-value pairs placed on the DaemonSet. [1] | `k8s.daemonset.annotation.replicas=1`; `k8s.daemonset.annotation.data=` | `Opt-In` |  |
|
||||||
|
| [`k8s.daemonset.label.<key>`](/docs/attributes-registry/k8s.md) | string | The label key-value pairs placed on the DaemonSet. [2] | `k8s.daemonset.label.app=guestbook`; `k8s.daemonset.label.injected=` | `Opt-In` |  |
|
||||||
|
|
||||||
|
**[1] `k8s.daemonset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
|
**[2] `k8s.daemonset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
<!-- markdownlint-restore -->
|
<!-- markdownlint-restore -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,22 @@ groups:
|
||||||
brief: >
|
brief: >
|
||||||
The name of the DaemonSet.
|
The name of the DaemonSet.
|
||||||
examples: ['opentelemetry']
|
examples: ['opentelemetry']
|
||||||
|
- id: k8s.daemonset.label
|
||||||
|
type: template[string]
|
||||||
|
stability: development
|
||||||
|
brief: >
|
||||||
|
The label key-value pairs placed on the DaemonSet.
|
||||||
|
note: |
|
||||||
|
The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
examples: ['k8s.daemonset.label.app=guestbook', 'k8s.daemonset.label.injected=']
|
||||||
|
- id: k8s.daemonset.annotation
|
||||||
|
type: template[string]
|
||||||
|
stability: development
|
||||||
|
brief: >
|
||||||
|
The annotation key-value pairs placed on the DaemonSet.
|
||||||
|
note: |
|
||||||
|
The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
examples: [ 'k8s.daemonset.annotation.replicas=1', 'k8s.daemonset.annotation.data=' ]
|
||||||
- id: k8s.hpa.uid
|
- id: k8s.hpa.uid
|
||||||
type: string
|
type: string
|
||||||
stability: development
|
stability: development
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,10 @@ groups:
|
||||||
attributes:
|
attributes:
|
||||||
- ref: k8s.daemonset.uid
|
- ref: k8s.daemonset.uid
|
||||||
- ref: k8s.daemonset.name
|
- ref: k8s.daemonset.name
|
||||||
|
- ref: k8s.daemonset.label
|
||||||
|
requirement_level: opt_in
|
||||||
|
- ref: k8s.daemonset.annotation
|
||||||
|
requirement_level: opt_in
|
||||||
|
|
||||||
- id: resource.k8s.job
|
- id: resource.k8s.job
|
||||||
type: resource
|
type: resource
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue