1 Reply Latest reply on Apr 9, 2018 9:40 PM by juice-qr

    wildfly 8.2.0 management api - stats

    juice-qr

      Hi, running wildfly 8.2.0-final, trying to find out how we can read all statistics about master domain controller and member servers. I need to be able list what member servers are active/inactive and their status. Also wondering what all the methods are that are available via the api, is there a comprehensive list of all the http api calls/methods that are available?

       

      I've been able to use 'server-state' successfully, but only shows single server health. I need to list all member servers and their health.

       

      curl --digest 'http://user:pass@master:9990/management' --header "Content-Type: application/json" -d '{"operation":"read-attribute", "address" : [{ "host" : "jb-08-586af" },{ "server" : "jb-08-586af" }], "name" : "server-state","json.pretty":1}'

       

      Thanks

        • 1. Re: wildfly 8.2.0 management api - stats
          juice-qr

          Maybe this will help someone else,

           

          Turns out that requesting a 'read-resource' will return a json list of all the resources, which lists the master and slave hosts section that I was looking for, along with the other resources,  

           

          curl --digest 'http://user:pass@master:9990/management' --header "Content-Type: application/json" -d '{"operation":"read-resource",  "json.pretty":1}'

           

          ..."org.wildfly.extension.io" : null,

                      "org.wildfly.extension.undertow" : null

                  },

                  "host" : {

                      "master" : null,

                      "slave-jb1" : null,

                      "slave-jb2" : null

                  },

                  "interface" : {

                      "management" : null,

                      "public" : null,

                      "unsecure" : null

          ...