Enable Kube State Metrics

Updated versions of the Sysdig agent can collect HPA, PVS, and other kube state metrics with the parameter k8s_extra_resources.

First, you must edit the agent config file, dragent.yaml, as follows:

      - services
      - resourcequotas
      - persistentvolumes
      - persistentvolumeclaims
      - horizontalpodautoscalers

By default, services and resourcequotas are enabled. Consider that enabling any of the elements will overwrite the default list of elements.

For example, enabling horizontalpodautoscalers will remove metrics about services. This might cause misfunctioning of some Sysdig Monitor and Secure features.

See also: Understanding the Agent Config Files.

Last modified December 22, 2021