Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not probe for power-meters when disabled
Previously, when DISABLE_POWER_METER is set, kepler would still probe system for power-meters resulting in kepler_node_info to produce incorrect results for components_power_source and platform_power_source. E.g. kepler_node_info{ components_power_source="rapl-sysfs", cpu_architecture="Skylake", instance="kepler-latest:8888", job="latest", platform_power_source="acpi", source="os" } The commit fixes this to use the fake power-meters so that kepler_node_info now shows ``` kepler_node_info{components_power_source="estimator", cpu_architecture="Skylake", instance="kepler-dev:8888", job="dev", platform_power_source="none", source="os" } ``` Signed-off-by: Sunil Thaha <[email protected]>
- Loading branch information