[
https://issues.apache.org/jira/browse/SLING-2597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583895#comment-13583895
]
Ian Boston commented on SLING-2597:
-----------------------------------
Implemented 2 main JMX beans that expose the statistics of queues. One exposes
the JobManager statistics, the other esposes the queues are they are created
and generated JMX notifications when queues are added and removed. As queues
are added they MBeans are registered as services which expose the statistics.
When queues are removed the services are removed. The OSGi JMX whiteboard
pattern takes care of registering the JMX beans.
Main commit in r1448886
In r1448887 I added a test button to the WebConsole to allow an admin to post
and event to a queue, causing the queue to be activated.
I think we could add more JMX beans where appropriate in Sling to give better
monitoring of health, but this is probably enough for the moment.
> Provide interface for monitoring services
> -----------------------------------------
>
> Key: SLING-2597
> URL: https://issues.apache.org/jira/browse/SLING-2597
> Project: Sling
> Issue Type: New Feature
> Reporter: Jörg Hoh
> Assignee: Ian Boston
>
> There should be an interface which one can query to get information about the
> status of a service implementing this interface.
> eg.
> public interface HealthCheckable {
> public int getStatus();
> }
> For the return value for this method we could use:
> static int OK = 0;
> static int WARNING = 1;
> static int CRITICAL = 2;
> static int UNKNOWN = 3;
> (these are the values which Nagios uses as return values for its plugins, see
> http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN76).
> The decision what value is returned is delegated to the service, so maybe
> they need to have some configuration to define the points, where a "OK"
> becomes "WARNING".
> Via OSGI whiteboard pattern we can collect then all services providing status
> information and calculate an overall status of the system.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira