Each "Web Application (WAR)" Resource should have one or more child "Web Application Context" Resources (depending on how many different vhosts it is deployed to). It is these ""Web Application Context" Resources that will have all of the numeric metrics - active sessions, avg response time, etc...
Thanks Ian, that was helpful!
Is it possible to add to these metrics our own custom metric information - regarding any specific business case?
Yes, it would be possible to add your own custom Resource types, exposing whatever metrics, operations, and/or configuration you want. You would do that by creating your own RHQ plugin and dropping the plugin jar into the admin-console war's plugins directory. For details on how to write an RHQ plugin, see http://www.rhq-project.org/display/RHQ/Plugin+Community.
Thanks for the prompt reply !.
Can we go about saving this metric information periodically - either in a csv or db?. Any such tools available for this operation?
The admin console does not save historical metric data or provide any facilities to do so. For that, you'll want to install RHQ (or, for production purposes, JBoss Operations Network (JON) which is the product based on RHQ).
Hi Ian. I'm having the same problem as shivani, but I don't quite understand the solution you present.
How can I create those "Web Application Context" Resources?
In which xml must I config the metric tags defiined here?
Thanks for any help you can provide..
Now I got it!
Just like you mentioned, instead of opening the "Metrics" tab for the WAR, we should expand the WAR, expand the "Web Application Contexts" folder, select the vhost and then open the "Metrics" tab.