RRD generated files for different URLs

50 views
Skip to first unread message

Adrián Ríos Caro

unread,
May 30, 2017, 3:26:23 PM5/30/17
to javamelody
Hi everybody,
I am testing javamelody 1.67 on my app and enabled the monitoring of all the webapps on my Tomcat by adding the configuration to the web.xml file as mentioned in the section "Deployment on Tomcat without modification of monitored webapps (beta)" as specified at https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced. So I have the following observations:

1. So far the UI at https://mysite.com:4443/monitoring shows many http URLs under the statistics http section ( which ends on many different files: jsp, js, icon, png, etc) but on the server only rrd files for jsp and js URLs have been created so far. I thought that an rrd file was created per URL but that seems not to be the case, at least not with the configuration I am using. Is there a way to enable the creation of an rrd file per URL to query its last real time (non averaged) value?



2. For the generated rrd files for the http URLs, is there a way to conveniently map the filenames (typically http{HASH}) with the real URL names (/path/to/url/service1.[jsp|js|png|ico|etc])?


Thanks for the great work done so far on Javamelody I personally think it is awesome =)

Regards,

Adrian Rios

evernat

unread,
Jun 1, 2017, 6:46:59 AM6/1/17
to javamelody

Hi Adrián,

1. Graphs and RRD files are not created for http urls in the stats where there is only 1 hit per minute. So when you will have more hits, the missing RRD files will be created.

2. Names of RRD files are indeed "http{HASH}.rrd", where {HASH} is a SHA-1 digest of "/image/button.png GET" for example, then converted from bytes to hexa.
So you could write a script converting urls to RRD files names. But for just some urls, it would be simpler to click on the urls one by one in the monitoring stats and then copy the RRD file name from the parameters of the opened url in your browser.

You are welcome,
Emeric

Adrián Ríos Caro

unread,
Jun 5, 2017, 12:31:02 PM6/5/17
to javamelody
Thanks Emeric,
Have a good week.

Adrian
Reply all
Reply to author
Forward
0 new messages