Skip to content

Commit 9cd41ec

Browse files
authored
Merge pull request #7166 from chrischdi/ksm-md-add-replicas-ready-metric
✨ Add missing status_replicas_ready metric for MachineDeployments at kube-state-metrics
2 parents 724c76b + 5c345dd commit 9cd41ec

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

hack/observability/kube-state-metrics/crd-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,15 @@ spec:
458458
- availableReplicas
459459
nilIsZero: true
460460
type: Gauge
461+
- name: status_replicas_ready
462+
help: The number of ready replicas per machinedeployment.
463+
each:
464+
gauge:
465+
path:
466+
- status
467+
- readyReplicas
468+
nilIsZero: true
469+
type: Gauge
461470
- name: status_replicas_unavailable
462471
help: The number of unavailable replicas per machinedeployment.
463472
each:

hack/observability/kube-state-metrics/metrics/machinedeployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@
8787
- availableReplicas
8888
nilIsZero: true
8989
type: Gauge
90+
- name: status_replicas_ready
91+
help: The number of ready replicas per machinedeployment.
92+
each:
93+
gauge:
94+
path:
95+
- status
96+
- readyReplicas
97+
nilIsZero: true
98+
type: Gauge
9099
- name: status_replicas_unavailable
91100
help: The number of unavailable replicas per machinedeployment.
92101
each:

0 commit comments

Comments
 (0)