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

     1    - groupVersionKind:
     2        group: cluster.x-k8s.io
     3        kind: MachineHealthCheck
     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_machinehealthcheck
    19      metrics:
    20      - name: info
    21        help: Information about a machinehealthcheck.
    22        each:
    23          info:
    24            # TODO: added metadata.name even it's already defined above as the metric doesn't work with empty labelsFromPath.
    25            labelsFromPath:
    26              name:
    27              - metadata
    28              - name
    29          type: Info
    30      - name: status_current_healthy
    31        help: Current number of healthy machines.
    32        each:
    33          gauge:
    34            path:
    35            - status
    36            - currentHealthy
    37          type: Gauge
    38      - name: status_expected_machines
    39        help: Total number of pods counted by this machinehealthcheck.
    40        each:
    41          gauge:
    42            path:
    43            - status
    44            - expectedMachines
    45          type: Gauge
    46      - name: status_remediations_allowed
    47        help: Number of machine remediations that are currently allowed.
    48        each:
    49          gauge:
    50            path:
    51            - status
    52            - remediationsAllowed
    53          type: Gauge