org.apache.storm.metrics2.cgroup

## Class CGroupCpuGuaranteeByCfsQuota

- java.lang.Object
- - org.apache.storm.metrics2.cgroup.CGroupMetricsBase
  - - org.apache.storm.metrics2.cgroup.CGroupCpuGuaranteeByCfsQuota

- All Implemented Interfaces:
    WorkerMetricRegistrant

      public class CGroupCpuGuaranteeByCfsQuota
      extends CGroupMetricsBase
      implements WorkerMetricRegistrant

  Report the percentage of the cpu guaranteed for the worker. It gets the result from cpu.cfs_period_us and cpu.cfs_quota_us. Use this when org.apache.storm.container.docker.DockerManager or org.apache.storm.container.oci.RuncLibContainerManager is used as the storm.resource.isolation.plugin.

- - ### Field Summary

    - ### Fields inherited from class org.apache.storm.metrics2.cgroup.CGroupMetricsBase

      `core, enabled`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CGroupCpuGuaranteeByCfsQuota(Map<String,Object> conf)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `registerMetrics(TopologyContext topologyContext)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CGroupCpuGuaranteeByCfsQuota

          public CGroupCpuGuaranteeByCfsQuota(Map<String,Object> conf)

  - ### Method Detail

    - #### registerMetrics

          public void registerMetrics(TopologyContext topologyContext)

      Specified by:
        `registerMetrics` in interface `WorkerMetricRegistrant`

Copyright © 2021 The Apache Software Foundation. All rights reserved.