users@glassfish.java.net

Re: How could I get the value from Glassfish monitoring tool

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Wed, 18 May 2011 09:42:53 -0700

I'm not exactly sure what you are referring to by the "glassfish
monitoring tool". Is this the monitoring pages in the console?

Rather than scraping HTML pages, here are some other options for getting
monitoring data in a form that a program can process:

1. Use the "asadmin get -m" command to get the values. This can be done
remotely from the server as get -m is a remote command.

2. Use the REST interface with json or XML output. For example, to get
the XML monitoring output for a "helloworld" application deploy on the
DAS, the URL is:

http://example.com:4848/monitoring/domain/server/applications/helloworld/server.xml

Tom