Add k8s.volume.{name,type} attributes (#1251)
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
This commit is contained in:
parent
a4fc971e0c
commit
e31ed0fdce
|
|
@ -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: Adds `k8s.volume.name` and `k8s.volume.type` attributes to the registry
|
||||
|
||||
# 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: [1164]
|
||||
|
||||
# (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:
|
||||
|
|
@ -39,6 +39,8 @@ Kubernetes resource attributes.
|
|||
| `k8s.replicaset.uid` | string | The UID of the ReplicaSet. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` |  |
|
||||
| `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.volume.name` | string | The name of the K8s volume. | `volume0` |  |
|
||||
| `k8s.volume.type` | string | The type of the K8s volume. | `emptyDir`; `persistentVolumeClaim` |  |
|
||||
|
||||
**[1]:** 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
|
||||
|
|
@ -63,6 +65,17 @@ Which states:
|
|||
Therefore, UIDs between clusters should be extremely unlikely to
|
||||
conflict.
|
||||
|
||||
`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](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap) volume |  |
|
||||
| `downwardAPI` | A [downwardAPI](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi) volume |  |
|
||||
| `emptyDir` | An [emptyDir](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir) volume |  |
|
||||
| `local` | A [local](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#local) volume |  |
|
||||
| `persistentVolumeClaim` | A [persistentVolumeClaim](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim) volume |  |
|
||||
| `secret` | A [secret](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#secret) volume |  |
|
||||
|
||||
## Deprecated Kubernetes Attributes
|
||||
|
||||
Describes deprecated k8s attributes.
|
||||
|
|
|
|||
|
|
@ -177,3 +177,40 @@ groups:
|
|||
brief: >
|
||||
The name of the CronJob.
|
||||
examples: ['opentelemetry']
|
||||
- id: k8s.volume.name
|
||||
type: string
|
||||
stability: experimental
|
||||
brief: >
|
||||
The name of the K8s volume.
|
||||
examples: [ 'volume0' ]
|
||||
- id: k8s.volume.type
|
||||
stability: experimental
|
||||
brief: >
|
||||
The type of the K8s volume.
|
||||
examples: [ "emptyDir", "persistentVolumeClaim" ]
|
||||
type:
|
||||
members:
|
||||
- id: persistent_volume_claim
|
||||
value: 'persistentVolumeClaim'
|
||||
brief: "A [persistentVolumeClaim](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#persistentvolumeclaim) volume"
|
||||
stability: experimental
|
||||
- id: config_map
|
||||
value: 'configMap'
|
||||
brief: "A [configMap](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#configmap) volume"
|
||||
stability: experimental
|
||||
- id: downward_api
|
||||
value: 'downwardAPI'
|
||||
brief: "A [downwardAPI](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#downwardapi) volume"
|
||||
stability: experimental
|
||||
- id: empty_dir
|
||||
value: 'emptyDir'
|
||||
brief: "An [emptyDir](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#emptydir) volume"
|
||||
stability: experimental
|
||||
- id: secret
|
||||
value: 'secret'
|
||||
brief: "A [secret](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#secret) volume"
|
||||
stability: experimental
|
||||
- id: local
|
||||
value: 'local'
|
||||
brief: "A [local](https://v1-29.docs.kubernetes.io/docs/concepts/storage/volumes/#local) volume"
|
||||
stability: experimental
|
||||
|
|
|
|||
Loading…
Reference in New Issue