Skip to content

Commit a4a4504

Browse files
committed
fix status_replicas_ready metric
1 parent 05f599c commit a4a4504

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/v1beta1/machinedeployment_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ type MachineDeploymentStatus struct {
243243

244244
// Total number of ready machines targeted by this deployment.
245245
// +optional
246-
// +Metrics:gauge:name="status_ready_replicas",help="The number of ready replicas per machinedeployment.",nilIsZero=true
246+
// +Metrics:gauge:name="status_replicas_ready",help="The number of ready replicas per machinedeployment.",nilIsZero=true
247247
ReadyReplicas int32 `json:"readyReplicas"`
248248

249249
// Total number of available machines (ready for at least minReadySeconds)

api/v1beta1/machineset_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ type MachineSetStatus struct {
139139

140140
// The number of ready replicas for this MachineSet. A machine is considered ready when the node has been created and is "Ready".
141141
// +optional
142-
// +Metrics:gauge:name="status_ready_replicas",help="The number of ready replicas per machineset.",nilIsZero=true
142+
// +Metrics:gauge:name="status_replicas_ready",help="The number of ready replicas per machineset.",nilIsZero=true
143143
ReadyReplicas int32 `json:"readyReplicas"`
144144

145145
// The number of available replicas (ready for at least minReadySeconds) for this MachineSet.

controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ type KubeadmControlPlaneStatus struct {
259259

260260
// Total number of fully running and ready control plane machines.
261261
// +optional
262-
// +Metrics:gauge:name="status_ready_replicas",help="The number of ready replicas per kubeadmcontrolplane.",nilIsZero=true
262+
// +Metrics:gauge:name="status_replicas_ready",help="The number of ready replicas per kubeadmcontrolplane.",nilIsZero=true
263263
ReadyReplicas int32 `json:"readyReplicas"`
264264

265265
// Total number of unavailable machines targeted by this control plane.

0 commit comments

Comments
 (0)