Skip to content

[receiver/k8scluster] Containers that are not running and have an empty ContainerID are skipped #43147

@yurytaranau-mck

Description

@yurytaranau-mck

Component(s)

receiver/k8scluster

What happened?

Description

The receiver ignores non-running containers with an empty ContainerID, leading to incomplete data collection for the newly introduced metrics k8s.container.status.state and k8s.container.status.reason.

Steps to Reproduce

Create a pod using an incorrect image or tag combination, resulting in the container having a Not Ready status and moving to the ImagePullBackOff state.

Expected Result

The receiver should handle and include non-running containers even if the ContainerID is empty.

Actual Result

Non-running containers with an empty ContainerID are ignored and excluded from the collected data.

Collector version

v0.136.0

Environment information

No response

OpenTelemetry Collector configuration

Log output

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

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