summaryrefslogtreecommitdiffstats
path: root/dmt/html/stats.html
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-11-18 06:55:24 -0500
committerMalfurious <m@lfurio.us>2023-11-20 05:04:57 -0500
commitc2740abc5e7e6e7c0eee07eb34377ba15e95d93d (patch)
treef8df6527d6658a8fc46eb6ddb564878432bbf8f7 /dmt/html/stats.html
parente63a11dcd7f349077f09cac5012e52ec271516e9 (diff)
downloadcychedelic-c2740abc5e7e6e7c0eee07eb34377ba15e95d93d.tar.gz
cychedelic-c2740abc5e7e6e7c0eee07eb34377ba15e95d93d.zip
dmt: Add stats page
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'dmt/html/stats.html')
-rw-r--r--dmt/html/stats.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/dmt/html/stats.html b/dmt/html/stats.html
new file mode 100644
index 0000000..8d03762
--- /dev/null
+++ b/dmt/html/stats.html
@@ -0,0 +1,17 @@
+<h1>Daemon Stats</h1>
+
+% fmt='table {{.ID}}\t{{.Image}}\t{{.RunningFor}}\t{{.Status}}'
+
+<div class="box">
+ <div class="box-title">Containers</div>
+ <div class="box-text">
+ <pre>%{ docker ps --all --format "$fmt" %}</pre>
+ </div>
+</div>
+
+<div class="box">
+ <div class="box-title">Usage</div>
+ <div class="box-text">
+ <pre>%{ docker system df %}</pre>
+ </div>
+</div>