Skip to content

Add interface to pressure_above and pressure_rising_beyond for root host pressure monitoring #50

Description

@danobi

It would be nice if pressure_above and pressure_rising_beyond plugins were able to monitor root host pressure.

Interface:

  • root host is encoded by '/'. ie cgroup=/ as the arg for the plugins

Code changes:

  • In PressureAbove::run and PressureRisingBeyond::run, during cgroup wildcard resolution, if the unresolved cgroup == '/', insert '/' into the list of resolved cgroups. Then special case Fs::readMempressure and Fs::readIopressure to pass /proc/pressure/memory and /proc/pressure/io, respectively, to Fs::readRespressure
    • Make sure to handle /proc/mempressure (no IO pressure for 4.11 kernels, though)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions