The following create a minikube with 10 CPU cores and 32GB memory. This is for experiments with heavy workload.
It uses kvm hypervisor. Make sure the qemu and libvirt have already installed
minikube start --cpus 10 --memory 32GB --disk-size=400g --extra-disks=2 --driver=kvm2 --force --container-runtime cri-o
git clone https://github.com/prometheus-operator/kube-prometheus
cd kube-prometheus/
kubectl apply --server-side -f manifests/setup
kubectl apply -f manifests/
kubectl apply -f https://gist.githubusercontent.com/rootfs/be880f0607cbe63433aec6afb38e1fbb/raw/a233434ab44db7224a4abf2154fa38b49c91e357/kepler-apiserver-k8s.yaml
check if kepler metrics are there
kubectl exec -ti -n monitoring prometheus-k8s-0 -- sh -c 'wget -O- "localhost:9090/api/v1/query?query=kepler_container_core_joules_total[5s]"'
# ssh to your host that runs minikube
ssh -L9090:localhost:9090 your_name@your_host
# once logged in
kubectl port-forward service/prometheus-k8s -n monitoring 9090:9090
# open a browser on your local host and check prometheus metrics at localhost:9090
kubectl port-forward -n kepler service/kepler-exporter 9102:9102
Then open a browser on your local host and go to http://localhost:9102/metrics