Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-7887

KSM to expose other objects not shown by default

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • openshift-4.19
    • Monitoring
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Add kubernetes objects not exposed by default to KSM
      1. 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.

      1. The customer needs to have information of those objects through prometheus, as for other objects already provided.
      1. List any affected packages or components.

      cluster-monitoring-operator > kube-state-metrics component

              prasriva@redhat.com Pranshu Srivastava
              rgordill1@redhat.com Ramon Gordillo Gutierrez
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                None
                None