Built off the open source project Osquery
Description: Statistics on Docker container memory usage.
What The Data Shows: Lists statistics on Docker container memory usage including a calculation of the percentage of current and maximum memory usage.
SQL:
SELECT name,memory_limit,
SUBSTR((memory_usage*1.0/memory_limit*100),0,5) AS '% memory current',
SUBSTR((memory_max_usage*1.0/memory_limit*100),0,5) AS '% memory max'
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.