Kepler Pod failed to start
Kepler uses eBPF to obtain performance counter readings and processes stats. Since eBPF requires kernel headers, Kepler will fail to start up when the kernel headers are missing.
To confirm, check the Kepler Pod logs with the following command and look for message
not able to load eBPF modules.
kubectl logs -n kepler daemonset/kepler-exporter
Installing kernel headers on each node can be done manually using the following command
# Fedora/RHEL based distro dnf install kernel-devel-`uname -r` -y # Debian/Ubuntu distro apt install linux-headers-$(uname -r)
On OpenShift, install the MachineConfiguration here
Kepler energy metrics are zeroes
Kepler uses RAPL counters on x86 platforms to read energy consumption.
VMs do not have RAPL counters and thus Kepler estimates energy consumption based on the pre-trained ML models. The models use either hardware performance counters or cGroup stats to estimate energy consumed by processes. Currently the cGroup based models use cGroup v2 features such as
The Kepler metrics are zeroes, check if cGroup version on the node:
Enable cGroup v2 on the node by following these Kubernetes instruction.
On OpenShift, apply these cGroup v2 MachineConfiguration