Skip to content

Commit

Permalink
Add k8s.node semantic convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Camp committed Jan 29, 2021
1 parent 37e9991 commit 3ab1adb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions semantic_conventions/resource/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ groups:
The name of the cluster.
examples: ['opentelemetry-cluster']

- id: k8s.node
prefix: k8s.node
brief: >
A Kubernetes Node object.
attributes:
- id: name
type: string
brief: >
The name of the Node.
examples: ['node-1']
- id: uid
type: string
brief: >
The UID of the Node.
examples: ['1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2']

- id: k8s.namespace
prefix: k8s.namespace
brief: >
Expand Down
13 changes: 13 additions & 0 deletions specification/resource/semantic_conventions/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ Kubernetes object, but "name" is usually more user friendly so can be also set.
| `k8s.cluster.name` | string | The name of the cluster. | `opentelemetry-cluster` | No |
<!-- endsemconv -->

## Node

**type:** `k8s.node`

**Description:** A Kubernetes Node.

<!-- semconv k8s.node -->
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `k8s.node.name` | string | The name of the Node. | `node-1` | No |
| `k8s.node.uid` | string | The UID of the Node. | `1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2` | No |
<!-- endsemconv -->

## Namespace

Namespaces provide a scope for names. Names of objects need to be unique within
Expand Down

0 comments on commit 3ab1adb

Please sign in to comment.