Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for exposing PSI metrics #3083

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support for exposing PSI metrics #3083

wants to merge 3 commits into from

Commits on May 17, 2022

  1. Replace runc with dqminh/runc for psi support

    Signed-off-by: Daniel Dao <[email protected]>
    dqminh committed May 17, 2022
    Configuration menu
    Copy the full SHA
    427f67e View commit details
    Browse the repository at this point in the history
  2. Expose PSI stats in libcontainer handler

    This adds 2 new set of metrics:
    - `psi_total`: read total number of seconds a resource is under pressure
    - `psi_avg`: read ratio of time a resource is under pressure over a
      sliding time window.
    
    For more details about these definitions, see:
    - https://www.kernel.org/doc/html/latest/accounting/psi.html
    - https://facebookmicrosites.github.io/psi/docs/overview
    
    Signed-off-by: Daniel Dao <[email protected]>
    dqminh committed May 17, 2022
    Configuration menu
    Copy the full SHA
    ab9bb9e View commit details
    Browse the repository at this point in the history

Commits on May 23, 2022

  1. Expose PSI metrics with prometheus

    This adds support for reading PSI metrics via prometheus. We exposes the
    following for `psi_total`:
    
    ```
    container_cpu_psi_total_seconds
    container_memory_psi_total_seconds
    container_io_psi_total_seconds
    ```
    
    And for `psi_avg`:
    
    ```
    container_cpu_psi_avg10_ratio
    container_cpu_psi_avg60_ratio
    container_cpu_psi_avg300_ratio
    
    container_memory_psi_avg10_ratio
    container_memory_psi_avg60_ratio
    container_memory_psi_avg300_ratio
    
    container_io_psi_avg10_ratio
    container_io_psi_avg60_ratio
    container_io_psi_avg300_ratio
    ```
    
    Signed-off-by: Daniel Dao <[email protected]>
    dqminh committed May 23, 2022
    Configuration menu
    Copy the full SHA
    5a27e49 View commit details
    Browse the repository at this point in the history