google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.01k stars 2.31k forks source link

Prometheus `container_network_receive_bytes_total` metric is not grouped by container ports #3514

Open GitGab19 opened 5 months ago

GitGab19 commented 5 months ago

Hi everybody, I'm running many containers which are connecting each-others through different ports. I'm collecting metrics using cadvisor and prometheus. I would be interested in filtering/selecting the container ports which I want to collect metrics from. As it is now, I can get the container_network_receive_bytes_total metric, but it will be the sum of every byte received from the several ports where a container is listening to. But, how can I choose which ports I want to analyze with cadvisor?

Hope it's clear enough, thanks for your time