-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Labels
Description
Area(s)
area:k8s
Is your change request related to a problem? Please describe.
K8s Cluster receiver uses would like to monitor K8s CrashLoop Back off state. We had a multiple issues about it:
- [k8scluster] add k8s.container.status_waiting_reason metric opentelemetry-collector-contrib#32457
- k8s.pod.phase not providing correct info if my pod status is Crashbackoff look opentelemetry-collector-contrib#33797 (comment)
Previously I tried to model status.waiting as Resource attribute, but because it's mutable it cannot be Resource attribute. See #997
I would like to propose adding this as metric to unblock this PR open-telemetry/opentelemetry-collector-contrib#35668
Describe the solution you'd like
# k8s.container.* metrics
- id: metric.k8s.container.status.waiting
type: metric
metric_name: k8s.container.status.waiting
stability: experimental
brief: "Whether container is in waiting state. (0 for no, 1 for yes)"
instrument: gauge
unit: ""
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done