You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javam...@googlegroups.com
Hi,
I need to monitor the number of executions and mean execution times of certain methods inside spring managed beans (annotated with @MonitoredWithSpring).
I figured I have 2 options, but both have the same problem.
1. Use the external API. The problem is I can't get the last value for a specific bean/method. Whant i need is something like calling http://localhost:8081/javamelody?part=lastValue&graph=springb1ba05eb99b3e298f976e48e730a7d99a9e3c1ff The problem here is that I have no idea to what bean/method springb1ba05eb99b3e298f976e48e730a7d99a9e3c1ff refers. And I'm not sure what info I'll get when doing this call. I need to get the mean execution time and the number of hits.
2. Read the RRD files much like https://github.com/sbower/nagios_javamelody_plugin I have the same problem here, there's no "dictionary" telling me which rrd repository corresponds to my beans/methods.
If I could get these values it'd be very easy to monitor applications using nagios.
Thank you!
Vernat Emeric
unread,
Jan 5, 2013, 8:00:50 PM1/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
2. By reading the RRD file which have the same name, you could
probably get the same last value.
But if you want the number of executions and the mean executions
times of a method, I suggest that you use the json or xml external
API.
You will need xstream dependency for json and also xpp3 for xml:
https://code.google.com/p/javamelody/wiki/ExternalAPI#XML
Once you get the data as xml or json, I suppose that you can parse
it and do whatever you want with it.
2. By reading the RRD file which have the same name, you could
probably get the same last value.
But if you want the number of executions and the mean executions
times of a method, I suggest that you use the json or xml external
API.
You will need xstream dependency for json and also xpp3 for xml: https://code.google.com/p/javamelody/wiki/ExternalAPI#XML
Once you get the data as xml or json, I suppose that you can parse
it and do whatever you want with it.