Skip to content

add entity metadata - namespace and container #37580

Closed as not planned
Closed as not planned
@jinja2

Description

@jinja2

Component(s)

receiver/k8scluster

Is your feature request related to a problem? Please describe.

I'd like to introduce some some additional descriptive attributes to the experimental k8s.namespace and container entities that are emitted from the k8scluster receiver.

Describe the solution you'd like

Add to k8s.namespace the attributes -

  • k8s.namespace.phase - Values can be active, terminating, unknown.
  • k8s.namespace.creation_timestamp - The creation timestamp of namespace object.

Add to container entity the attribute -

  • container.creation_timestamp - This is the timestamp the container was started at. The attribute is available when the state of the container is running or terminated (waiting container does not have this attr). Note, for other entities like namespace the creation_timestamp is the time from metadata of the object, whereas for a container this is the StartedAt field from the containerStatus. I am not certain if we want to make this distinction here with a different key, e.g. container.started_at.

Describe alternatives you've considered

No response

Additional context

On a previous PR, we discussed tracking these entity attrs in an issue in sem-conv. The tracking issue is #1693.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions