Description Usage Arguments Details Value Note Examples
Run docker stats and returns a data.frame
1 | dockerstats(..., all = FALSE, notrunc = FALSE, extra = "")
|
... |
Subset of containers to get stats from. If empty, all running containers are looked for. |
all |
Show all containers (default shows just running). |
notrunc |
Whether or not to truncate output. |
extra |
Extra information to add in the "extra" column. |
Output description:
CONTAINER ID and Name the ID and name of the container
CPU % and MEM % the percentage of the host’s CPU and memory the container is using
MEM USAGE / LIMIT the total memory the container is using, and the total amount of memory it is allowed to use
NET I/O The amount of data the container has sent and received over its network interface
BLOCK I/O The amount of data the container has read to and written from block devices on the host
PIDs the number of processes or threads the container has created
From https://docs.docker.com/engine/reference/commandline/stats/
A data.frame with the docker stats with class "dockerstats"
append, for later expansion
(not used currently).
MemPerc and PIDs are not available on Windows
1 2 3 4 5 | if (interactive()){
if (dockerstats_available()) {
dockerstats()
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.