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

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

Open
danobi opened this issue Feb 14, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@danobi
Copy link
Contributor

danobi commented Feb 14, 2019

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)
@danobi danobi added the enhancement New feature or request label Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant