Hi Tobias,

Inspired by https://github.com/jooby-project/jooby/tree/master/jooby-metrics
I think it would be nice if wicket-metrics provides a IResource that
renders JSON with the current metrics per type/aspect.
I.e. if /wicket/metrics/ is requested then it dumps something like:

{
  "SomeTimerAspect" : {min:.., max:..., mean:..., ...},
  ...
   "SomeCounterAspect" : {value:..},
   ...
}

When /wicket/metrics/SomeCounterAspect is requested then :
{"value": ...}
is rendered.

Do you think it is a good idea ?

It will be useful for quicker checks of the current state.

The application will have to mount it explicitly in MyApp#init().


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

Reply via email to