aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md45
1 files changed, 44 insertions, 1 deletions
diff --git a/README.md b/README.md
index d5464d5..839b2c5 100644
--- a/README.md
+++ b/README.md
@@ -16,4 +16,47 @@ xinetd service to retrieve basic system information
### Usage
Query the machine running quickstat (via xinetd) using the following URL:
-```http://HOST:PORT/stats```
+```http://HOST:PORT/stats```
+
+The resulting JSON will look like this:
+```
+{
+ "cpu": {
+ "pctuser": "4.93",
+ "pctsystem": "3.22",
+ "pctwait": "0.66",
+ "pctidle": "91.15",
+ "1minavg": "0.23",
+ "5minavg": "0.33",
+ "15minavg": "0.36"
+ },
+ "mem": {
+ "total": "439364",
+ "used": "80512",
+ "free": "11920"
+ },
+ "swap": {
+ "total": "0",
+ "used": "0",
+ "free": "0"
+ },
+ "disk": [{
+ "device": "sda",
+ "read-kbps": "0.29",
+ "write-kbps": "23.97"
+ }],
+ "partition": [{
+ "device": "/dev/sda1",
+ "mount": "/",
+ "total": "27990468",
+ "used": "10520320",
+ "free": "17470148"
+ }, {
+ "device": "/dev/sda2",
+ "mount": "/boot",
+ "total": "102182",
+ "used": "24270",
+ "free": "77912"
+ }]
+}
+```