sigs.k8s.io/cluster-api@v1.7.1/config/metrics/templates/clusterclass.yaml (about)

     1    - groupVersionKind:
     2        group: cluster.x-k8s.io
     3        kind: ClusterClass
     4        version: v1beta1
     5      labelsFromPath:
     6        name:
     7        - metadata
     8        - name
     9        namespace:
    10        - metadata
    11        - namespace
    12        uid:
    13        - metadata
    14        - uid
    15      metricNamePrefix: capi_clusterclass
    16      metrics:
    17      - name: info
    18        help: Information about a clusterclass.
    19        each:
    20          info:
    21            # TODO: added metadata.name even it's already defined above as the metric doesn't work with empty labelsFromPath.
    22            labelsFromPath:
    23              name:
    24              - metadata
    25              - name
    26          type: Info