I think it's likely that just copying metric definitions from the AS5 to the AS7 plugin won't work, as the two are completely different in how they work and how the management interfaces work.  The AS7 plugin guys will probbaly comment.   Have you confirmed that the metrics are being collected by seeing them in the monitor tab views?  If the collection interval is large it may take some time.

Also, are you sure the alert conditions are against the actual value and not baseline values?  The latter requires that the baseline actually be calculated before the alert condition will be evaluated.

Of course the alert must be enabled, but it is enabled by default, so that is not likely to be a problem.


On 11/6/2012 1:48 PM, Claudianus A wrote:
Hello list -
I am new to the list and have a question regarding how metrics work in the jboss-as-7-plugin. 
I have a JON 3.1.1 running with EAP plugin pack with a slight modification of the jboss-as-7-plugin (see lines 8827 - 8835 in the attached plugin deployment descriptor). I noticed that jboss-as-5-plugin had sessions metrics included while jboss-as-7-plugin didn't have those metrics enabled. I needed to enable those metrics in order to use them to trigger alerts that will later running a deploy script I wrote. 
What I did was basically looking at the Web Context session in the jboss-as-5-plugin deployment descriptor and copied some of the metrics I needed that were not included in jboss-as-7-plugin. So I copied those metrics into the Web Runtime section of the jboss-as-7-plugin deployment descriptor as can be seen from the attached xml file. I then proceeded to deploy the plugin into my JON 3.1.1 install. 
I followed all the steps I found on enabling metrics an was able to enable those metrics for my deployed web application. I then went to the alert screen and was able to define alert based on those metrics I included. For example I created an alert on active sessions count change and another one to be fired when the active sessions count falls to 0 or below 1. So far I have not been able to get those alerts to fire. I started wondering whether there is anything else I needed to modify to get this working. I just need few pointers on how this used to work in jboss-as-5-plugin. I looked at the jboss-as-5-plugin code and the jboss-as-7-plugin code and couldn't spot anything that is directly related to those metrics. So I decided to post here to see if anyone who knows the internals of the plugins might be able to give me few pointers on what else I needed to enable in order to get those alerts to start firing.

Any help is greatly appreciated.


Regards, 


PS I am aware that there is a bug on web deployment metrics missing AS7-4444 as well as a product management bug PRODMGT-245. 


--
Claudianus


_______________________________________________
rhq-users mailing list
rhq-users@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/rhq-users