Jhipster dev team recommends to use @Timed annotation for the services you want to monitor.
It is presented in the creating a service page ( http://jhipster.github.io/creating_a_service.html ).
So how it works in JHipster? How can I monitor these services annotated? And what is the cost to maintain this annotation in all services? Any processing overhead by using this annotation in production?
JHipster uses DropWizard Metrics (have you seen the tech stack here?), and those @Timed annotations come from the Spring support for Dropwizard Metrics.
To have more information about DropWizard Metrics, here is their website.
There is of course an overhead, but it depends on how you use those annotations: if it's on a Service bean that will do just one database access, then you should not worry about it, as the database access is orders of magnitude more resource intensive. We use it for very high trafic applications without any issue, and anyway in case of performance issue we'd better have some monitoring than being blind!
Of course you can then monitor those services, that's the whole point:
mvn
and go to the administration screens.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With