Java REST WebService resource access statistics

I have implemented a REST web service written in Java and I am about to add statistics collection functionality. If it were a few years ago, I would write some method call interceptors, increment some counters, expose them through JMX, and pipe all these things to RRDTool or Cacti.

I don't know, and I was unable to find something related to this task, but maybe there are some frameworks that already do this, or at least simplify the process? For example, I could measure the time it took to execute a custom query, but it’s much more difficult to analyze which query parameters a method uses more / faster.

Ideally, I'm looking for some build of annotation based analytics. Then I could annotate the methods with which I collect the call statistics, and then later I could open the statistics on some web page and see a very detailed report.

Does something exist currently like this?


source to share

All Articles