feat: add k8s.container.status.last_terminated_reason resource attribute (#968)
Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
This commit is contained in:
parent
b4a04fdb16
commit
3dc61e15a5
|
|
@ -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: add container.status.last_terminated_reason resource attribute
|
||||||
|
|
||||||
|
# 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: [922]
|
||||||
|
|
||||||
|
# (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:
|
||||||
|
|
@ -15,7 +15,8 @@
|
||||||
| `k8s.cluster.name` | string | The name of the cluster. | `opentelemetry-cluster` |  |
|
| `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.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.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.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. | `0`; `2` |  |
|
| `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.cronjob.name` | string | The name of the CronJob. | `opentelemetry` |  |
|
| `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.cronjob.uid` | string | The UID of the CronJob. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||||
| `k8s.daemonset.name` | string | The name of the DaemonSet. | `opentelemetry` |  |
|
| `k8s.daemonset.name` | string | The name of the DaemonSet. | `opentelemetry` |  |
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,8 @@ to a running container.
|
||||||
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|
||||||
|---|---|---|---|---|---|
|
|---|---|---|---|---|---|
|
||||||
| [`k8s.container.name`](../attributes-registry/k8s.md) | 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` | `Recommended` |  |
|
| [`k8s.container.name`](../attributes-registry/k8s.md) | 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` | `Recommended` |  |
|
||||||
| [`k8s.container.restart_count`](../attributes-registry/k8s.md) | 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. | `0`; `2` | `Recommended` |  |
|
| [`k8s.container.restart_count`](../attributes-registry/k8s.md) | 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. | | `Recommended` |  |
|
||||||
|
| [`k8s.container.status.last_terminated_reason`](../attributes-registry/k8s.md) | string | Last terminated reason of the Container. | `Evicted`; `Error` | `Recommended` |  |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
## ReplicaSet
|
## ReplicaSet
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,12 @@ groups:
|
||||||
Number of times the container was restarted. This attribute can be
|
Number of times the container was restarted. This attribute can be
|
||||||
used to identify a particular container (running or stopped) within a
|
used to identify a particular container (running or stopped) within a
|
||||||
container spec.
|
container spec.
|
||||||
examples: [0, 2]
|
- id: container.status.last_terminated_reason
|
||||||
|
type: string
|
||||||
|
stability: experimental
|
||||||
|
brief: >
|
||||||
|
Last terminated reason of the Container.
|
||||||
|
examples: ["Evicted", "Error"]
|
||||||
- id: replicaset.uid
|
- id: replicaset.uid
|
||||||
type: string
|
type: string
|
||||||
stability: experimental
|
stability: experimental
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ groups:
|
||||||
attributes:
|
attributes:
|
||||||
- ref: k8s.container.name
|
- ref: k8s.container.name
|
||||||
- ref: k8s.container.restart_count
|
- ref: k8s.container.restart_count
|
||||||
|
- ref: k8s.container.status.last_terminated_reason
|
||||||
|
|
||||||
- id: k8s.replicaset
|
- id: k8s.replicaset
|
||||||
prefix: k8s.replicaset
|
prefix: k8s.replicaset
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue