Skip to content

Add container status metric to dockerstatsreceiver #44428

@NSSPKrishna

Description

@NSSPKrishna

Component(s)

receiver/dockerstats

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

The Docker Stats receiver currently collects various metrics about running containers (CPU, memory, network, etc.) but does not expose the container's current status (running, paused, exited, etc.). This information is valuable for monitoring and alerting on container lifecycle events.

Describe the solution you'd like

Add a new metric container.status that reports the current status of monitored containers with the status as an attribute.

Metric Details:

  • Name: container.status
  • Type: Gauge (Int)
  • Unit: 1 (dimensionless)
  • Attributes:
    • status: Enum with values: created, running, paused, restarting, removing, exited, dead
  • Enabled by default: Yes

Describe alternatives you've considered

No response

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