Reputation: 659
I want to capture method execution statistics like method name, time taken by method etc in graphite.
We have 8 to 5 products and few of the products are legacy products which are not using spring. So what could be the best way to capture these statistics (in graphite) with very minimal change in the source code.
Upvotes: 1
Views: 86
Reputation: 1181
obviously to use an APM, and in my (opinionated view) the best tool for this is MoSKito:
If you don't want to change the source code at all: http://blog.anotheria.net/msk/monitoring-existing-application-using-moskito-javaagent/
If you are ok to change the source code slightly:
http://blog.anotheria.net/msk/the-complete-moskito-integration-guide-step-1/
The last link is an example for spring, but it works with AOP annotations, so it should work with any tech you are using (even with ejb).
Last link: if you want to get a look on the tool itself, there is a video on you tube with a webinar held by the apache tomcat community: https://www.youtube.com/watch?v=5RCkx-hGK1Q
Finally if you happen to live near Montreal, ApacheCon is in Montreal next week and there is a talk about MoSkito there: https://apachecon.dukecon.org/acna/2018/#/scheduledEvent/0745118b5ee397ec3
best regards Leon
Upvotes: 1