-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yaml for K8s and OS resource attributes (#1057)
- Loading branch information
Showing
4 changed files
with
262 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
groups: | ||
- id: k8s.cluster | ||
prefix: k8s.cluster | ||
brief: > | ||
A Kubernetes Cluster. | ||
attributes: | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the cluster. | ||
examples: ['opentelemetry-cluster'] | ||
|
||
- id: k8s.namespace | ||
prefix: k8s.namespace | ||
brief: > | ||
A Kubernetes Namespace. | ||
attributes: | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the namespace that the pod is running in. | ||
examples: ['default'] | ||
|
||
- id: k8s.pod | ||
prefix: k8s.pod | ||
brief: > | ||
A Kubernetes Pod object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the Pod. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the Pod. | ||
examples: ['opentelemetry-pod-autoconf'] | ||
|
||
- id: k8s.container | ||
prefix: k8s.container | ||
brief: > | ||
A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). | ||
attributes: | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the Container in a Pod template. | ||
examples: ['redis'] | ||
|
||
- id: k8s.replicaset | ||
prefix: k8s.replicaset | ||
brief: > | ||
A Kubernetes ReplicaSet object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the ReplicaSet. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the ReplicaSet. | ||
examples: ['opentelemetry'] | ||
|
||
- id: k8s.deployment | ||
prefix: k8s.deployment | ||
brief: > | ||
A Kubernetes Deployment object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the Deployment. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the Deployment. | ||
examples: ['opentelemetry'] | ||
|
||
- id: k8s.statefulset | ||
prefix: k8s.statefulset | ||
brief: > | ||
A Kubernetes StatefulSet object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the StatefulSet. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the StatefulSet. | ||
examples: ['opentelemetry'] | ||
|
||
- id: k8s.daemonset | ||
prefix: k8s.daemonset | ||
brief: > | ||
A Kubernetes DaemonSet object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the DaemonSet. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the DaemonSet. | ||
examples: ['opentelemetry'] | ||
|
||
- id: k8s.job | ||
prefix: k8s.job | ||
brief: > | ||
A Kubernetes Job object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the Job. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the Job. | ||
examples: ['opentelemetry'] | ||
|
||
- id: k8s.cronjob | ||
prefix: k8s.cronjob | ||
brief: > | ||
A Kubernetes CronJob object. | ||
attributes: | ||
- id: uid | ||
type: string | ||
brief: > | ||
The UID of the CronJob. | ||
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] | ||
- id: name | ||
type: string | ||
brief: > | ||
The name of the CronJob. | ||
examples: ['opentelemetry'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
groups: | ||
- id: os | ||
prefix: os | ||
brief: > | ||
The operating system (OS) on which the process represented by this resource is running. | ||
note: > | ||
In case of virtualized environments, this is the operating system as it is observed by | ||
the process, i.e., the virtualized guest rather than the underlying host. | ||
attributes: | ||
- id: type | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: WINDOWS | ||
value: 'WINDOWS' | ||
brief: "Microsoft Windows" | ||
- id: LINUX | ||
value: 'LINUX' | ||
brief: "Linux" | ||
- id: DARWIN | ||
value: 'DARWIN' | ||
brief: "Apple Darwin" | ||
- id: FREEBSD | ||
value: 'FREEBSD' | ||
brief: "FreeBSD" | ||
- id: NETBSD | ||
value: 'NETBSD' | ||
brief: "NetBSD" | ||
- id: OPENBSD | ||
value: 'OPENBSD' | ||
brief: "OpenBSD" | ||
- id: DRAGONFLYBSD | ||
value: 'DRAGONFLYBSD' | ||
brief: "DragonFly BSD" | ||
- id: HPUX | ||
value: 'HPUX' | ||
brief: "HP-UX (Hewlett Packard Unix)" | ||
- id: AIX | ||
value: 'AIX' | ||
brief: "AIX (Advanced Interactive eXecutive)" | ||
- id: SOLARIS | ||
value: 'SOLARIS' | ||
brief: "Oracle Solaris" | ||
- id: ZOS | ||
value: 'ZOS' | ||
brief: "IBM z/OS" | ||
required: always | ||
brief: 'The operating system type.' | ||
- id: description | ||
type: string | ||
brief: > | ||
Human readable (not intended to be parsed) OS version information, | ||
like e.g. reported by `ver` or `lsb_release -a` commands. | ||
examples: ['Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters