Does Custom Resource State Metrics support deep nested objects? #2589
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
We have a k8s object as follows.
We would like to generate a metrics like
resourceCount{tenant=tenantA, hostGroup=hostGroupA, resourceType=type2} 2
.Initially I tried to use
labelFromKey
, but it seems only supports one level of nesting. I have to statically specify path, and in the last level use labelFromKey to generate metrics by resourceType.Wondering whether we can use labelFromKey for nested objects.
The text was updated successfully, but these errors were encountered: