poniedziałek, 13 lutego 2017

curl docker monitoring

[ansible@wildvmq5.polsatc ~]$ curl --digest http://admin:password@192.168.82.126:9990/management -d '{"operation":"read-resource", "include-runtime":"true", "address":[{"core-service":"platform-mbean"},{"type":"memory"}], "json.pretty":1}' -H Content-Type:application/json

{
    "outcome" : "success",
    "result" : {
        "heap-memory-usage" : {
            "init" : 1098907648,
            "used" : 2722441184,
            "committed" : 4260102144,
            "max" : 4260102144
        },
        "non-heap-memory-usage" : {
            "init" : 2555904,
            "used" : 1181620648,
            "committed" : 1251344384,
            "max" : -1
        },
        "object-name" : "java.lang:type=Memory",
        "object-pending-finalization-count" : 0,
        "verbose" : true
    }
}

[ansible@wildvmq5.polsatc ~]$ curl  --digest http://admin:password@192.168.82.126:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute","name":"server-state","json.pretty":1}'
{
    "outcome" : "success",
    "result" : "running"
}

Brak komentarzy:

Prześlij komentarz