Create alerts to restart camel-route with JON
folks,
I have a Jboss fuse 6.2.1 with fabric and i want use JON to monitor the camel-routes in a fabric container.
I created a alert but JON dont identifies the route-stop.
JON can not identifies camel route stop ?
Responses
The Camel Route resource component is using the generic MBeanResourceComponent implementation. Its getAvailability() method only indicates whether the target MBean is registered in the MBean server. Therefore, after stopping the resource, its availability state will be reported as up.
The end result is as you describe. There is no way to detect that the route has been stopped and therefore, you can not react to an availability condition within your alert definition.
I am not a Fuse expert by any means but from looking at the available options, perhaps you can use the State metric for the alert? Assuming this reports the true state of the Camel Route, perhaps you can collect this trait every few minutes and then define an alert that reacts based on its value?
Hope this helps!
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
