Built off the open source project Osquery
Description: Statistics on Docker container network traffic size.
What The Data Shows: Lists statistics on Docker container network traffic size including transmit, recieved, and total bytes sent.
SQL:
SELECT name,(network_rx_bytes+network_tx_bytes) as 'Total network bytes',
SUBSTR((network_rx_bytes*1.0/(network_rx_bytes+network_tx_bytes)*100),0,5) AS '% rx bytes',
SUBSTR((network_tx_bytes*1.0/(network_rx_bytes+network_tx_bytes)*100),0,5) AS '% tx bytes'
FROM docker_container_stats
WHERE id IN (SELECT id FROM docker_containers);
Copyright © 2005-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.