Skip to content

Commit

Permalink
Merge pull request #11101 from tobiasgiese/metrics-niliszero-stateset
Browse files Browse the repository at this point in the history
🌱 Add nilIsZero to all KSM metric configs where needed
  • Loading branch information
k8s-ci-robot authored Aug 27, 2024
2 parents 12b75cd + 82adc39 commit 13b3445
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions config/metrics/crd-metrics-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a clusterclass.
Expand All @@ -79,6 +80,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -175,6 +177,7 @@ spec:
path:
- status
- phase
nilIsZero: true
type: StateSet
- name: created
help: Unix creation timestamp.
Expand Down Expand Up @@ -212,6 +215,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a cluster.
Expand All @@ -227,6 +231,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- groupVersionKind:
group: controlplane.cluster.x-k8s.io
Expand Down Expand Up @@ -348,6 +353,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a kubeadmcontrolplane.
Expand All @@ -363,6 +369,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -447,6 +454,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a kubeadmconfig.
Expand All @@ -462,6 +470,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -609,6 +618,7 @@ spec:
path:
- status
- phase
nilIsZero: true
type: StateSet
- name: created
help: Unix creation timestamp.
Expand Down Expand Up @@ -646,6 +656,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a machine.
Expand All @@ -661,6 +672,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -868,6 +880,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a machinedeployment.
Expand All @@ -883,6 +896,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -937,6 +951,7 @@ spec:
path:
- status
- currentHealthy
nilIsZero: true
type: Gauge
- name: status_expected_machines
help: Total number of pods counted by this machinehealthcheck.
Expand All @@ -945,6 +960,7 @@ spec:
path:
- status
- expectedMachines
nilIsZero: true
type: Gauge
- name: status_remediations_allowed
help: Number of machine remediations that are currently allowed.
Expand All @@ -953,6 +969,7 @@ spec:
path:
- status
- remediationsAllowed
nilIsZero: true
type: Gauge
- name: created
help: Unix creation timestamp.
Expand Down Expand Up @@ -990,6 +1007,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a machinehealthcheck.
Expand All @@ -1005,6 +1023,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -1104,6 +1123,7 @@ spec:
path:
- status
- fullyLabeledReplicas
nilIsZero: true
type: Gauge
- name: status_replicas_ready
help: The number of ready replicas per machineset.
Expand Down Expand Up @@ -1159,6 +1179,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a machineset.
Expand All @@ -1174,6 +1195,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down Expand Up @@ -1310,6 +1332,7 @@ spec:
path:
- status
- phase
nilIsZero: true
type: StateSet
- name: created
help: Unix creation timestamp.
Expand Down Expand Up @@ -1347,6 +1370,7 @@ spec:
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a machinepool.
Expand All @@ -1362,6 +1386,7 @@ spec:
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
- name: owner
help: Owner references.
Expand Down
1 change: 1 addition & 0 deletions config/metrics/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@
path:
- status
- phase
nilIsZero: true
type: StateSet
2 changes: 2 additions & 0 deletions config/metrics/templates/common_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- conditions
valueFrom:
- status
nilIsZero: true
type: StateSet
- name: status_condition_last_transition_time
help: The condition last transition time of a ${RESOURCE}.
Expand All @@ -49,4 +50,5 @@
- conditions
valueFrom:
- lastTransitionTime
nilIsZero: true
type: Gauge
1 change: 1 addition & 0 deletions config/metrics/templates/machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@
path:
- status
- phase
nilIsZero: true
type: StateSet
3 changes: 3 additions & 0 deletions config/metrics/templates/machinehealthcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
path:
- status
- currentHealthy
nilIsZero: true
type: Gauge
- name: status_expected_machines
help: Total number of pods counted by this machinehealthcheck.
Expand All @@ -42,6 +43,7 @@
path:
- status
- expectedMachines
nilIsZero: true
type: Gauge
- name: status_remediations_allowed
help: Number of machine remediations that are currently allowed.
Expand All @@ -50,4 +52,5 @@
path:
- status
- remediationsAllowed
nilIsZero: true
type: Gauge
1 change: 1 addition & 0 deletions config/metrics/templates/machinepool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@
path:
- status
- phase
nilIsZero: true
type: StateSet
1 change: 1 addition & 0 deletions config/metrics/templates/machineset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
path:
- status
- fullyLabeledReplicas
nilIsZero: true
type: Gauge
- name: status_replicas_ready
help: The number of ready replicas per machineset.
Expand Down

0 comments on commit 13b3445

Please sign in to comment.