users@jersey.java.net

Re: REST monitoring

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Thu, 2 Dec 2010 09:55:16 +0100

On Dec 1, 2010, at 8:39 PM, Tatu Saloranta wrote:
> On Wed, Dec 1, 2010 at 7:41 AM, algermissen1971 <algermissen1971_at_me.com
> > wrote:
>> Victor,
>>
>> On 01 Dec, 2010,at 03:35 PM, Victor Grazi <vgrazi_at_gmail.com> wrote:
>>
>> We are working on defining a REST standard for our firm and we are
>> wondering
>> if there are any third party console or other tools available for
>> monitoring
>> and managing RESTful web services. We would need to manage things
>> as low as
>> the health inidividual services and as far as monitoring and
>> managing nodes
>> in a cluster
>>
>>
>> You basically have the full scope of HTTP Server/HTTP Intermediary
>> monitoring tools at your disposal.
>> What about HTTP logfile analyzers, SNMP Tools, Nagios, Cacti,...
>> Regarding
>> clustering, your app container (assuming you use one) should
>> provide plenty
>> of monitoring possibilities.
>
> In addition, JMX is often used as the intermediate piece to pipe
> statistics out of REST service (using filters, or just direct calls
> from REST exposed methods), and available for monitoring systems.
>

Yes, we don't currently have any JMX monitoring in Jersey. There is
some basic monitoring supported with GlassFish, using GlassFish
probes, and one can get simple statistics of hits on resource classes/
methods.

Quite a bit of information can be obtained from the HTTP/servlet layer
given that when HTTP is used as an application protocol if provides
much richer information that if used just as a transport, and as Jan
points out much of that information can also be obtained by an
intermediary. For a framework like JAX-RS it does not make sense to
duplicate that and instead concentrate on monitoring of the
application components e.g. to ask questions like why the heck is
processing a GET request to this method of this class taking 10x
longer than we expect? or to tell correlate URI states with
application artifacts.

I would be interested in feedback from people on what they would like
to see in terms on monitoring in Jersey, using JMX or otherwise.

Paul.