Merge "Remove Available Metrics sub-section (r9,r8)"

This commit is contained in:
Zuul 2024-11-11 14:33:46 +00:00 committed by Gerrit Code Review
commit df5f959cf3
2 changed files with 5 additions and 36 deletions

View File

@ -439,9 +439,10 @@ Provision BMC using the CLI
provisioning_bmc/provisioning-bmc-after-adding-a-host
provisioning_bmc/deprovisioning-board-management-control-from-the-cli
----------------------------------
Technology Preview - Power Metrics
----------------------------------
-------------
Power Metrics
-------------
.. toctree::
:maxdepth: 1

View File

@ -666,36 +666,4 @@ a container, it is exposed as ``container_perf_events_total``.
It also reports the scaling ratio, which calculates the ratio of performance
events in a container, it is exposed as
``container_perf_events_scaling_ration``.
.. rubric:: **Per Core CPU Power usage**
By considering the frequency of each core, gathered by
``powerstat_core_cpu_frequency_mhz`` metric with the amount of power usage of
the processor, gathered by
``powerstat_package_current_power_consumption_watts`` metric, it is possible to
estimate the total amount of power, in watts, that is being used by each core.
Example of formula:
per_cpu_consumption = ((0.6 * powerstat_core_cpu_frequency_mhz{cpu_id=x,
package_id=y})/ ∑ powerstat_core_cpu_frequency_mhz{package_id=y}) *
powerstat_package_current_power_consumption_watts{package_id=y}
.. rubric:: **Container CPU Power usage**
By gathering the number of instructions in each container running on the
cluster, gathered by the ``container_perf_events_total`` metric, with the
corresponding core that they are using, determined by the per core cpu power
usage described above, and the total number of instructions per core, also
available from ``container_perf_events_total metric``, it is possible to
estimate the power that is being consumed by each container.
Example of formula to calculate the power consumption of a container on a core:
container_per_cpu_consumption = (container_perf_events_total{cpu=x,
container=z} / container_perf_events_total {cpu=x}) *
per_cpu_consumption{cpu=x}
Where "X" is the core_id of the cpu, "Y" is the package_id or physical_id of
the processor, and "Z" is the container name.
``container_perf_events_scaling_ration``.