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

     1    - groupVersionKind:
     2        group: cluster.x-k8s.io
     3        kind: MachinePool
     4        version: v1beta1
     5      labelsFromPath:
     6        cluster_name:
     7        - spec
     8        - clusterName
     9        name:
    10        - metadata
    11        - name
    12        namespace:
    13        - metadata
    14        - namespace
    15        uid:
    16        - metadata
    17        - uid
    18      metricNamePrefix: capi_machinepool
    19      metrics:
    20      - name: spec_replicas
    21        help: The number of desired machines for a machinepool.
    22        each:
    23          gauge:
    24            path:
    25            - spec
    26            - replicas
    27          type: Gauge
    28      - name: status_replicas
    29        help: The number of replicas per machinepool.
    30        each:
    31          gauge:
    32            path:
    33            - status
    34            - replicas
    35            nilIsZero: true
    36          type: Gauge
    37      - name: status_replicas_ready
    38        help: The number of ready replicas per machinepool.
    39        each:
    40          gauge:
    41            path:
    42            - status
    43            - readyReplicas
    44            nilIsZero: true
    45          type: Gauge
    46      - name: status_replicas_available
    47        help: The number of available replicas per machinepool.
    48        each:
    49          gauge:
    50            path:
    51            - status
    52            - availableReplicas
    53            nilIsZero: true
    54          type: Gauge
    55      - name: status_replicas_unavailable
    56        help: The number of unavailable replicas per machinepool.
    57        each:
    58          gauge:
    59            path:
    60            - status
    61            - unavailableReplicas
    62            nilIsZero: true
    63          type: Gauge
    64      - name: info
    65        each:
    66          type: Info
    67          info:
    68            labelsFromPath:
    69              infrastructure_reference_name:
    70              - spec
    71              - template
    72              - spec
    73              - infrastructureRef
    74              - name
    75              infrastructure_reference_kind:
    76              - spec
    77              - template
    78              - spec
    79              - infrastructureRef
    80              - kind
    81              bootstrap_configuration_reference_name:
    82              - spec
    83              - template
    84              - spec
    85              - bootstrap
    86              - configRef
    87              - name
    88              bootstrap_configuration_reference_kind:
    89              - spec
    90              - template
    91              - spec
    92              - bootstrap
    93              - configRef
    94              - kind
    95              failure_domain:
    96              - spec
    97              - template
    98              - spec
    99              - failureDomain
   100              version:
   101              - spec
   102              - template
   103              - spec
   104              - version
   105      - name: status_phase
   106        help: The machinepools current phase.
   107        each:
   108          stateSet:
   109            labelName: phase
   110            list:
   111            - ScalingUp
   112            - ScalingDown
   113            - Running
   114            - Failed
   115            - Unknown
   116            path:
   117            - status
   118            - phase
   119          type: StateSet