Closed Stono closed 2 days ago
This issue is currently awaiting triage.
If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Ah, there is kube_pod_init_container_resource_requests
. Shall close this off and think about how we migrate across.
What would you like to be added:
kube_pod_container_resource_requests
should support Sidecar containers (those withrestartPolicy: Always
).Why is this needed:
We've recently migrated a bunch of workloads from
containers
toinitContainers
, such asistio-proxy
,cloudsql-proxy
etc. We use to usekube_pod_container_resource_requests{container="istio-proxy"}
to generate alerts when the cpu usage of that container > the request.Describe the solution you'd like
As
sidecar
containers are really just like any other running container, it would be good for them to just be included inkube_pod_container_resource_requests
regardless of if they're incontainers
orinitContainers
withrestartPolicy: Always
.Additional context