Created
May 12, 2016 21:58
-
-
Save carroarmato0/133ba88b19d351ad26bd9a1c7b3c3bce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@phoebe ~ # curl -s --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers/mysql/state | jq | |
{ | |
"type": "sync", | |
"status": "Success", | |
"status_code": 200, | |
"metadata": { | |
"status": "Stopped", | |
"status_code": 102, | |
"disk": null, | |
"memory": { | |
"usage": 0, | |
"usage_peak": 0, | |
"swap_usage": 0, | |
"swap_usage_peak": 0 | |
}, | |
"network": null, | |
"pid": 0, | |
"processes": 0 | |
} | |
} | |
root@phoebe ~ # curl -s --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers/mysql/state | jq | |
{ | |
"type": "sync", | |
"status": "Success", | |
"status_code": 200, | |
"metadata": { | |
"status": "Running", | |
"status_code": 103, | |
"disk": { | |
"root": { | |
"usage": 423190528 | |
} | |
}, | |
"memory": { | |
"usage": 216076288, | |
"usage_peak": 217116672, | |
"swap_usage": 0, | |
"swap_usage_peak": 0 | |
}, | |
"network": { | |
"eth0": { | |
"addresses": [ | |
{ | |
"family": "inet", | |
"address": "10.251.120.244", | |
"netmask": "24", | |
"scope": "global" | |
}, | |
{ | |
"family": "inet6", | |
"address": "fd39:f6dc:811:6b78:216:3eff:fe77:74cd", | |
"netmask": "64", | |
"scope": "global" | |
}, | |
{ | |
"family": "inet6", | |
"address": "fe80::216:3eff:fe77:74cd", | |
"netmask": "64", | |
"scope": "link" | |
} | |
], | |
"counters": { | |
"bytes_received": 1420, | |
"bytes_sent": 1270, | |
"packets_received": 8, | |
"packets_sent": 9 | |
}, | |
"hwaddr": "00:16:3e:77:74:cd", | |
"host_name": "vethPARLD7", | |
"mtu": 1500, | |
"state": "up", | |
"type": "broadcast" | |
}, | |
"lo": { | |
"addresses": [ | |
{ | |
"family": "inet", | |
"address": "127.0.0.1", | |
"netmask": "8", | |
"scope": "local" | |
}, | |
{ | |
"family": "inet6", | |
"address": "::1", | |
"netmask": "128", | |
"scope": "local" | |
} | |
], | |
"counters": { | |
"bytes_received": 0, | |
"bytes_sent": 0, | |
"packets_received": 0, | |
"packets_sent": 0 | |
}, | |
"hwaddr": "", | |
"host_name": "", | |
"mtu": 65536, | |
"state": "up", | |
"type": "loopback" | |
} | |
}, | |
"pid": 21094, | |
"processes": 39 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment