Class CpuUsageMonitor

java.lang.Object
hudson.node_monitors.NodeMonitor
io.jenkins.plugins.specsmonitor.CpuUsageMonitor
All Implemented Interfaces:
ExtensionPoint, Describable<NodeMonitor>

public class CpuUsageMonitor extends NodeMonitor
Node monitor that reports the CPU usage of each node, averaged over a few seconds, with the peak and the usage of the agent process as a tooltip.
  • Field Details

  • Constructor Details

    • CpuUsageMonitor

      @DataBoundConstructor public CpuUsageMonitor()
  • Method Details

    • getWarnAbovePercent

      public int getWarnAbovePercent()
      CPU usage at or above this percentage is highlighted as a warning.
    • setWarnAbovePercent

      @DataBoundSetter public void setWarnAbovePercent(int warnAbovePercent)
    • isHigh

      public boolean isHigh(CpuUsageInfo info)
      Whether the system CPU usage in info has reached the configured threshold. A threshold of 100 turns the warning off.