-
Feature Request
-
Resolution: Unresolved
-
Undefined
-
None
-
openshift-4.19
-
None
-
Product / Portfolio Work
-
None
-
False
-
-
None
-
None
-
None
-
-
None
-
None
-
None
-
None
-
None
- Add kubernetes objects not exposed by default to KSM
- A customer wants to track object like serviceaccounts and clusterroles that are not exposed in KSM by default. The default ones are:
certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
But according to https://github.com/kubernetes/kube-state-metrics/blob/main/internal/store/builder.go#L326-L360
Some others can be available. Indeed
- clusterroles
- clusterrolebindings
- endpointslices
- ingressclasses
- roles
- rolebindings
- serviceaccounts
Can be enabled if specified at the "--resource" param with the already existing, giving a complete set of stores.
- The customer needs to have information of those objects through prometheus, as for other objects already provided.
- List any affected packages or components.
cluster-monitoring-operator > kube-state-metrics component