+++ This bug was initially created as a clone of Bug #811288 +++ In domain mode, metrics are not obtained on the RHQ resources that are taken for configuration (at /profile=x level ) but at /host=y/server=x/ level). We need to create a "shadow tree" that lists all the stuff, but only has metrics enabled (except for a hand full of stuff like "flush data source" operation. The code should be mostly the same (except to determine the base path of /host=y/server=x instead of /host=y/server-config=x , which is used to detect managed servers ), so this is a matter of creating RHQ resource types and only copying over the <metrics> but not e.g. <resource-config> --- Additional comment from snegrea on 2012-04-11 07:09:05 EDT --- Here is an example of such update for the Transactions subsystem: http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=fabb16c3db53fe24ca82af7577a0912f91b09b2d --- Additional comment from snegrea on 2012-05-22 08:39:26 EDT --- All subsystems have now been added to managed server type resource. The only one missing was the web subsystem, but it was resolved by bug 821878. Most of the subsystem can be found in three locations: standalone, profile and managed servers. For any subsystem, standalone is a superset of profile and managed server operations, metrics and properties; managed servers and profile have disjoint sets. With the current AS7 plugin descriptor, when a resource is discovered for managed servers or profile it will have available extra operations and/or properties. There is currently no solution for this due to plugin platform limitations (it was never designed for such complex inheritance model). There are currently two subsystem with separate descriptors for the three types of server resources: transactions and data sources. The transactions subsystem was split into three descriptors as a proof of concept to see how feasible this solution would be. Unfortunately, following this pattern will lead to a three fold increase in the number of resource descriptors (three for each subsystem - one for each server type), it will slow down discovery, and it will make the resource descriptor unreadable. For data sources, the split was necessary because of the subsystem complexity (large number of properties and metrics). This is captured by bug 806240. A different (and more generic) solution will need to be implemented and applied for the rest of the subsystems. In conclusion, metrics are correctly captured for managed servers' subsystems. However, extra operations and/or properties might be available through the RHQ interface that are not available on the actual AS7 subsystem.
All the subsystem definitions have been updated and separated to target standalone, profile and managed server parents. master branch commits: http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=e64a55be3956635df78bd35676f29d4f8a3fa3bd http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=010cfe6296c0f0919c4d836d7b8a4fcf3116d3e6 http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=4ac30142c5c3581159b0fb29cf222bef18cbf164 http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=f5ac59bf58ff39228790b4dbdcc59c7861cf0344 http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=1ee873f2e9eec7507e65f77e5aa70336c5beaa7e http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=acc5f0a08049440b70441fda1d591e225f2156ab http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=a8339a172dddf1f7b98e4502d8bbc3f8b6ca3208 http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=1490b713fd1b2b0829521225eb4d9ab21b1f4e90
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.