Skip to content

Commit

Permalink
metrics: regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 30, 2024
1 parent 2838228 commit 4e61080
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
31 changes: 16 additions & 15 deletions config/metrics/metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Generated by controller-gen version v0.0.0-00010101000000-000000000000
# Generated based on types for kube-state-metrics v2.13.0
---
kind: CustomResourceStateMetrics
spec:
resources:
- errorLogV: 0
Expand Down Expand Up @@ -525,14 +529,12 @@ spec:
info:
labelsFromPath:
node_name:
- status
- nodeRef
- name
node_uid:
- status
- nodeRef
- uid
path: null
path:
- status
- nodeRef
type: Info
help: Information about the node reference of a machine.
name: status_noderef
Expand Down Expand Up @@ -845,9 +847,9 @@ spec:
- each:
info:
labelsFromPath:
name:
- metadata
- name
maxUnhealthy:
- spec
- maxUnhealthy
path: null
type: Info
help: Information about a machinehealthcheck.
Expand Down Expand Up @@ -905,7 +907,7 @@ spec:
name: status_condition_last_transition_time
- each:
gauge:
nilIsZero: false
nilIsZero: true
path:
- status
- currentHealthy
Expand All @@ -915,17 +917,17 @@ spec:
name: status_current_healthy
- each:
gauge:
nilIsZero: false
nilIsZero: true
path:
- status
- expectedMachines
valueFrom: null
type: Gauge
help: Total number of pods counted by this machinehealthcheck.
help: Total number of machines counted by this machinehealthcheck.
name: status_expected_machines
- each:
gauge:
nilIsZero: false
nilIsZero: true
path:
- status
- remediationsAllowed
Expand Down Expand Up @@ -1017,7 +1019,7 @@ spec:
- version
path: null
type: Info
help: ""
help: Information about a machinepool.
name: info
- each:
info:
Expand Down Expand Up @@ -1300,7 +1302,7 @@ spec:
name: status_replicas_available
- each:
gauge:
nilIsZero: false
nilIsZero: true
path:
- status
- fullyLabeledReplicas
Expand Down Expand Up @@ -1488,4 +1490,3 @@ spec:
help: The number of updated replicas per kubeadmcontrolplane.
name: status_replicas_updated
resourcePlural: ""

22 changes: 11 additions & 11 deletions config/metrics/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-state-metrics-custom-resource-capi
labels:
kube-state-metrics/aggregate-to-manager: "true"
name: manager-metrics-role
rules:
- apiGroups:
- bootstrap.cluster.x-k8s.io
resources:
- kubeadmconfigs
verbs:
- get
- list
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
- clusterclasses
- clusters
- machinedeployments
- machinehealthchecks
- machinepools
- machinesets
- machines
- machinehealthchecks
- machinesets
verbs:
- get
- list
Expand All @@ -28,11 +36,3 @@ rules:
- get
- list
- watch
- apiGroups:
- bootstrap.cluster.x-k8s.io
resources:
- kubeadmconfigs
verbs:
- get
- list
- watch

0 comments on commit 4e61080

Please sign in to comment.