cadvisor in kubelet should expose container labels #79702
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
What would you like to be added:
I am trying to use build-in cadvisor to monitor the containers. I scrape the metrics from api-server:
http://localhost:8080/api/v1/nodes/minikube/proxy/metrics/cadvisor
and get some metrics like this:The
docker inspect
command prints the container labels:It is reasonable to remove the internal labels(annotation.io.xxxx, io.kubernetes.xxx), but how can i expose my custom container labels such as “maintainer” to cadvisor?
Why is this needed:
I need container labels to do aggregation in promethues.
The text was updated successfully, but these errors were encountered: