Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add k8s.container.restart_count Resource attribute #1945

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ release.
([#1890](https://github.com/open-telemetry/opentelemetry-specification/pull/1890))
- Add HTTP request and response headers semantic conventions.
([#1898](https://github.com/open-telemetry/opentelemetry-specification/pull/1898))
- Add `k8s.container.restart_count` Resource attribute.
([#1945](https://github.com/open-telemetry/opentelemetry-specification/pull/1945))

### Compatibility

Expand Down
7 changes: 7 additions & 0 deletions semantic_conventions/resource/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ groups:
brief: >
The name of the Container in a Pod template.
examples: ['redis']
- id: restart_count
type: int
brief: >
Number of times the container was restarted. This attribute can be
used to identify a particular container (running or stopped) within a
container spec.
bogdandrutu marked this conversation as resolved.
Show resolved Hide resolved
examples: [0, 2]
bogdandrutu marked this conversation as resolved.
Show resolved Hide resolved

- id: k8s.replicaset
prefix: k8s.replicaset
Expand Down
1 change: 1 addition & 0 deletions specification/resource/semantic_conventions/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ to a running container.
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `k8s.container.name` | string | The name of the Container in a Pod template. | `redis` | No |
| `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` | No |
<!-- endsemconv -->

## ReplicaSet
Expand Down