CustomResourceStateMetrics Wildcard in paths #2057
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.
What would you like to be added:
Ability to wildcard parts of paths for
CustomResourceStateMetrics
, in this case specifically aStateSet
path, but could equally apply to other paths.Example:
Custom Resource
We want to report a StateSet metric for the color of foos that have a condition of type "MetricForThis".
Config
[name=*]
means "any" name where the following path conditions still apply. To differentiate matching instances, the value of the wildcard is also applied as a label.Metric output
Outside of the basic case presented here, ideally this would work with further levels nesting as well (multiple wildcards in the path).
The text was updated successfully, but these errors were encountered: