Prathamesh Bhope

Results comments of Prathamesh Bhope

Overall its in a good shape now. Can you squash the commits?

Hi @Serializator - Can you address @mrueg 's comment? I ran a quick check on my end and it seems with this change the metric count would be about 2...

Ran the numbers to quantify this. Built this branch and deployed against a local cluster with 20 services and realistic multi-port mix): | Metric | Series | Notes | |---|---:|---|...

This is in a good shape now, thanks for your PR! /lgtm

> Okay, I think at this point we should reconsider the approach here to reduce cardinality. Maybe we should not use a stateset here @dgrisonnet @bhope @CatherineF-dev @rexagod wdyt? I...

Hi @krish0005 - we're rethinking the stateset approach to keep cardinality down (tracked in #3004), so we'll have to hold this until that's settled. /hold

Thanks for your contributions! Other than the inline comment, you'd also need to update the docs here: [docs/metrics/workload/pod-metrics.md ](https://github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/workload/pod-metrics.md?plain=1#L51)

Thinking about this a bit more, today these metrics are dropped for pods with ephemeral storage. So this change would mean those metrics will now start flowing in, so there...