Pranshu Srivastava

Results 524 comments of Pranshu Srivastava

Reopening in favor of https://github.com/kubernetes/kube-state-metrics/pull/2068#issuecomment-1598669259.

For the CRS snippet below, the output will contain labels with the prefix `foo_` for every key present in the `fooObj` and it's values marshalled into the respective label values....

This basically builds on top of the originally present `*` `labelFromPath` key, which would marshal every key-value pair in an object as is, into label-values, whereas this allows prepending text...

I can modify this PR, or send another patch in the future to truly denote `*` as the resolved object keys and insert keys there, not _just_ at the prefix.

Do you mean supporting expressions such as `foo_b?r.*` for `labelFromPaths` using the library? As in, all `fooObj` keys that match the `b?r.*` pattern and include only those as labels? This...

I see. My only concern here is when moving from, ``` "*": [metadata, labels] "prefix_*": [metadata, labels] "*_suffix": [metadata, labels] "prefix_*_suffix": [metadata, labels] ``` to, ``` labelsFromPath: - path: [metadata,...

@dgrisonnet Please correct me if I'm wrong but I believe transforming `labelsFromPath` to a list will be a breaking change. For instance, the following (currently the way to specify label...