Reporting simple stats, loadavg and number of blocked/running procs.
2.1K
USAGE:
docker service create --name stats-<hostname> \
--constraint node.hostname=<hostname> s21g/stats
stats service reports LA 1min, 5min, 15min, procs blocked, running as follows:
curl -s http://<host>:8080
1.31 1.07 0.97 0 2 <hostname>
is the hostname of docker container. It can be specified by /etc/host_hostname file if it exists.
And you can chain the stats of hosts by specifying env BACKENDS as follows:
BACKENDS=http://stats-host1:8080,http://stats-host2:8080
stats reports the maximum values of 5 numbers.
Content type
Image
Digest
Size
4.3 MB
Last updated
over 9 years ago
docker pull s21g/stats