dstat-agent is a HTTP API for dstat.
2.1K
dstat-agent. You can check your server resource via REST.
This tool uses dstat. You need to install dstat to your server where this agent works on.
yum install dstat
apt-get install dstat
go get github.com/hiroakis/dstat-agent
or clone this repository and build by yourself.
dstat-agent
The agent use 8888 port by default. If you would like to choose listen address as you like, you can use -host option and -port option.
You can get dstat values as json from remote.
curl SERVER:8888

If you would like to see demo quickly, you can also use docker. Just type following command after clone this repository.
docker build -t hiroakis/dstat-agent .
docker run -p 8888:8888 hiroakis/dstat-agent
curl http://localhost:8888
MIT
Content type
Image
Digest
sha256:6e016a26b…
Size
153 MB
Last updated
about 11 years ago
docker pull hiroakis/dstat-agent