Open PierreRustOrange opened 4 years ago
Actually it's not necessarily a problem if the sensor does not resolve names, as long as it keeps monitoring the containers and reports the metrics with the containerid. When running on kubernetes we need other metadata anyway (pod name, namespace, etc.) , which we can get using the K8S API and the containerid.
I'll submit a pull request to add a new option to the cli, with disable the name resolution entirely.
As long as it refers to a control group that can be monitored, we can report the measurement using its raw identifier.
I totally agree. I've just submitted PR #5 for that purpose. With this it will also be possible to use the sensor image from docker hub on k8s.
When running the sensor (from the official
powerapi/hwpc-sensor:latest
image) in a kubernetes cluster, the sensor fails to resolve the name of the containers and does not monitor any container for which it does not find a nameLog:
This issues happen on a k3s-based cluster, both when using docker or containerd as a container engine.