[k8s] Introduce semantic conventions for k8s ReplicaSet labels and annotations (#2167)
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
This commit is contained in:
parent
3f9f8f26f5
commit
0246e4513e
|
|
@ -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 ReplicaSet 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: [2132]
|
||||||
|
|
||||||
|
# (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:
|
||||||
|
|
@ -43,6 +43,8 @@ Kubernetes resource attributes.
|
||||||
| <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. [12] | `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. [12] | `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. [13] | `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. [14] | `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` |  |
|
||||||
|
|
@ -134,6 +136,10 @@ 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 `""`.
|
||||||
|
|
||||||
|
**[13] `k8s.replicaset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
|
**[14] `k8s.replicaset.label`:** The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
`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.
|
`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.
|
||||||
|
|
|
||||||
|
|
@ -243,6 +243,12 @@ to a running container.
|
||||||
|---|---|---|---|---|---|
|
|---|---|---|---|---|---|
|
||||||
| [`k8s.replicaset.name`](/docs/attributes-registry/k8s.md) | string | The name of the ReplicaSet. | `opentelemetry` | `Recommended` |  |
|
| [`k8s.replicaset.name`](/docs/attributes-registry/k8s.md) | string | The name of the ReplicaSet. | `opentelemetry` | `Recommended` |  |
|
||||||
| [`k8s.replicaset.uid`](/docs/attributes-registry/k8s.md) | string | The UID of the ReplicaSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | `Recommended` |  |
|
| [`k8s.replicaset.uid`](/docs/attributes-registry/k8s.md) | string | The UID of the ReplicaSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | `Recommended` |  |
|
||||||
|
| [`k8s.replicaset.annotation.<key>`](/docs/attributes-registry/k8s.md) | string | The annotation key-value pairs placed on the ReplicaSet. [1] | `k8s.replicaset.annotation.replicas=0`; `k8s.replicaset.annotation.data=` | `Opt-In` |  |
|
||||||
|
| [`k8s.replicaset.label.<key>`](/docs/attributes-registry/k8s.md) | string | The label key-value pairs placed on the ReplicaSet. [2] | `k8s.replicaset.label.app=guestbook`; `k8s.replicaset.label.injected=` | `Opt-In` |  |
|
||||||
|
|
||||||
|
**[1] `k8s.replicaset.annotation`:** The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
|
||||||
|
**[2] `k8s.replicaset.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 -->
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,22 @@ groups:
|
||||||
brief: >
|
brief: >
|
||||||
The name of the ReplicaSet.
|
The name of the ReplicaSet.
|
||||||
examples: ['opentelemetry']
|
examples: ['opentelemetry']
|
||||||
|
- id: k8s.replicaset.label
|
||||||
|
type: template[string]
|
||||||
|
stability: development
|
||||||
|
brief: >
|
||||||
|
The label key-value pairs placed on the ReplicaSet.
|
||||||
|
note: |
|
||||||
|
The `<key>` being the label name, the value being the label value, even if the value is empty.
|
||||||
|
examples: ['k8s.replicaset.label.app=guestbook', 'k8s.replicaset.label.injected=']
|
||||||
|
- id: k8s.replicaset.annotation
|
||||||
|
type: template[string]
|
||||||
|
stability: development
|
||||||
|
brief: >
|
||||||
|
The annotation key-value pairs placed on the ReplicaSet.
|
||||||
|
note: |
|
||||||
|
The `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
||||||
|
examples: [ 'k8s.replicaset.annotation.replicas=0', 'k8s.replicaset.annotation.data=' ]
|
||||||
- id: k8s.replicationcontroller.uid
|
- id: k8s.replicationcontroller.uid
|
||||||
type: string
|
type: string
|
||||||
stability: development
|
stability: development
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,10 @@ groups:
|
||||||
attributes:
|
attributes:
|
||||||
- ref: k8s.replicaset.uid
|
- ref: k8s.replicaset.uid
|
||||||
- ref: k8s.replicaset.name
|
- ref: k8s.replicaset.name
|
||||||
|
- ref: k8s.replicaset.label
|
||||||
|
requirement_level: opt_in
|
||||||
|
- ref: k8s.replicaset.annotation
|
||||||
|
requirement_level: opt_in
|
||||||
|
|
||||||
- id: resource.k8s.deployment
|
- id: resource.k8s.deployment
|
||||||
type: resource
|
type: resource
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue