Closed 40Cakes closed 3 years ago
Kill cloudflare-ddns-ipv6, queue a download and reporting looks good:
Resume the container, and the reporting is borked again:
It is reporting correctly, because your network_mode
is set to host
it will pick up all traffic for the host from that specific container.
You can modify the query to disregard that specific container if you prefer:
Container Network Input:
sum by (name) (rate(container_network_receive_bytes_total{name!="cloudflare-ddns-ipv6",image!="",container_label_org_label_schema_group=""}[1m]))
Container Network Output:
sum by (name) (rate(container_network_transmit_bytes_total{name!="cloudflare-ddns-ipv6",image!="",container_label_org_label_schema_group=""}[1m]))
Hey guys,
I have a container that is configured with
network_mode: host
to get the host's IPv6 address, I just noticed that this container is being tagged with most of the network throughput on the system when in reality this container uses barely any resources. It should be mullvad-vpn container since this spike was when I tested a FreeBSD ISO download via qBittorrent (which uses the mullvad-vpn container as a service (see below)).Can I label certain containers to disregard them from monitoring? Or is there a way to resolve this incorrect network throughput reporting?
Excerpt of my docker compose file as reference if required: (I can post the whole thing if required, but it's almost 1,000 lines long 😅 )