Results 1 to 7 of 7

Thread: Monitoring SI application using SI

  1. #1

    Default Monitoring SI application using SI

    The following quote is from the SI reference manual:
    As described in (EIP), the idea behind the Control Bus is that the same messaging system can be used for monitoring and managing the components within the framework as is used for "application-level" messaging.
    While I can see that this is true for managing the components (using the control bus), what about monitoring a SI application using SI as the messaging system for the monitoring messages?

    I was thinking to do something like this:
    I have some sort of simple GUI application for displaying monitoring info, including historical data. This application reads its data from a database. I would like to fill this database using SI, by exposing the components as MBeans using a <jmx:mbean-exporter>, and then periodically read all the attributes using <jmx:attribute-polling-channel-adapter> and storing them using <jdbc:outbound-channel-adapter> (so the monitoring application can show nice graphs). However, as far as I can tell, this would require one <jmx:attribute-polling-channel-adapter> for each exposed attribute of each SI component, which will result in a huge amount of JMX channel adapters.

    Is there another/better way to do this?

  2. #2

    Default

    I'm still wondering about this, anyone any ideas/insights/comments about how to achieve this?

    Using Spring Integration itself for handling the monitoring messages is still my preferred approach, since this will result in a nice loose coupling between my messaging application (Spring Integration) and the monitoring application (which wouldn't even be aware of the fact JMX is used).

  3. #3
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Have you looked at JMX support in 2.0. You can monitor all kinds of statistics on channels and endpoints. We should probably have some more samples showing it but for now i would suggest to check out the test cases.

  4. #4

    Default

    Yes, the JMX support in 2.0 is what caused my question

    If possible, I want to use the JMX support (i.e. an <jmx:attribute-polling-channel-adapter> ?) to capture all those nice statistics on channels and endpoints for monitoring purposes. This way I don't have to write any JMX support in my monitoring application, but I can use Spring Integration (which I'm already using for the "functional" message flows).

    The problem I'm having is that I don't know how I can easily capture all JMX attributes exposed by the <jmx:mbean-exporter>, unless typing them all out and creating one <jmx:attribute-polling-channel-adapter> for every attribute of every exposed channel/endpoint.

  5. #5
    Join Date
    May 2012
    Posts
    14

    Default

    Hi,

    I am new to Spring Integration and JMX as well. However, I looked at the examples and have a few questions about implementations. So my use case is that I want to be able to start, stop, pause and resume a consumer. This can be done through a message. The payload of the message could have the command required to be executed.

    I am trying to configure the Control Bus just to stop the RabbitMQ adapter, but am unable to do so. Is this even possible??

    Any help will be appreciated ..

  6. #6
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,037

    Default

    Have you looked at the control-bus sample?

    https://github.com/SpringSource/spri...ic/control-bus

    What problems are you having?

    Also, it is better to start a new thread, than revive one that's over a year old.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  7. #7
    Join Date
    May 2012
    Posts
    14

    Default

    Yes I have, here is the new thread with some more info :

    http://forum.springsource.org/showth...706#post413706

    Can you help?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •