stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.02k stars 1.72k forks source link

How to get ports granularity on `container_network_receive_bytes_total` metric #301

Open GitGab19 opened 5 months ago

GitGab19 commented 5 months ago

I have many containers communicating each-other. Using cadvisor to get network container metrics, such as container_network_receive_bytes_total. My issue is that my containers are using many ports to open sockets between them and communicate through them. But cavisor sums all of them in order to produce the aforementioned metric. How can I get ports granularity on network container metrics? I would like to filter on specific ports for example.

Thank you

GitGab19 commented 5 months ago

@nightah @stefanprodan could you help me when you get a chance?