Docker: added cpu load and memory load display

This commit is contained in:
bergware
2018-06-03 11:01:33 +02:00
parent e90ba2d00f
commit 594f6682e0
@@ -1,6 +1,4 @@
#!/bin/bash
while :; do
curl --data "$(docker stats --no-stream --format='{{.Container}} {{.CPUPerc}} {{.MemPerc}}')" --unix-socket /var/run/nginx.socket http://localhost/pub/dockerload?buffer_length=0 >/dev/null 2>&1
sleep 1
curl -sfd "$(docker stats --no-stream --format='{{.Container}} {{.CPUPerc}} {{.MemPerc}}')" --unix-socket /var/run/nginx.socket http://localhost/pub/dockerload?buffer_length=0 >/dev/null 2>&1
done &