Skip to content
Closed
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 model/k8s/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ groups:
- ref: k8s.container.name
- ref: k8s.container.restart_count
- ref: k8s.container.status.last_terminated_reason
- ref: k8s.container.ports
Comment thread
spurplewang marked this conversation as resolved.
requirement_level: opt_in

- id: entity.k8s.replicaset
type: entity
Expand Down
14 changes: 14 additions & 0 deletions model/k8s/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,17 @@ groups:
[Kubernetes Resource Quotas documentation](https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota)
for more details.
examples: [ 'count/replicationcontrollers' ]
- id: k8s.container.ports
requirement_level: opt_in
type: map[]
stability: development
brief: >
List of ports exposed from the container. See the Kubernetes documentation for [Container ports](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#containerport-v1-core) for more details.
The value will be an empty list when no ports are exposed.
fields:
- id: container_port
type: int
stability: development
brief: >
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
examples: [10053, 8080, 8081]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include a full example for k8s.container.ports? would it be something like [{container_port: 10053}, {container_port: 8080}]?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type of example would need to be one level up though. @open-telemetry/specs-semconv-approvers is this type of examples allowed in general for map[] attributes?