This the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Enable Kube State Metrics

    Agent Versions 12.5.0 and Onward

    HPA kube state metrics are no longer collected by default. To enable the agent to collect HPA kube state metrics, you must edit the agent configuration file, dragent.yaml, and include it along with the other resources you would like to collect.

    For example, to collect all supported resources including HPAs, add the following to dragent.yaml:

    k8s_extra_resources:
        include:
          - services
          - resourcequotas
          - persistentvolumes
          - persistentvolumeclaims
          - horizontalpodautoscalers
    

    Agent Versions 12.3.x and 12.4.x

    The Sysdig agent collects HPA, PVS, PV, Resourcequota, and Services kube state metrics by default.

    To disable some of them, you must edit the agent config file, dragent.yaml, as follows:

    k8s_extra_resources:
        include:
          - services
          - resourcequotas
          - persistentvolumes
          - persistentvolumeclaims
          - horizontalpodautoscalers
    

    The above list includes all the supported resources so you must remove the resources you are not interested in. For example, if you wanted to disable Services, it should look like the following:

    k8s_extra_resources:
        include:
          - resourcequotas
          - persistentvolumes
          - persistentvolumeclaims
          - horizontalpodautoscalers
    

    For more information, see Understanding the Agent Configuration Files.

    Enable PVC Metrics

    In addition to the agent configuration detailed in this section, PVC metrics collection requires additional settings. See Configure PVC for more information.