Anyway to customize javamelody monitor page header?

105 views
Skip to first unread message

russell...@spiritaero.com

unread,
May 8, 2012, 4:49:39 PM5/8/12
to javamelody
The default javamelody header displays as the following:
Statistics of JavaMelody monitoring taken at 5/8/12 3:08 PM on /
enovia_ServerHostName

I would like this to display my full tomcat instance name (like
enovia_dev1) instead of appending the hostname on to the file. When
you have multiple tomcat instances on a given host the reports all
have the same header and you can not tell what report you viewing..
Any assistance would be appreciated.
Thanks.

Derek Hollis

unread,
May 23, 2012, 3:09:21 PM5/23/12
to javam...@googlegroups.com
Russell where you able to figure this out?  I would like to do this as well.

russell...@spiritaero.com

unread,
May 24, 2012, 8:09:48 AM5/24/12
to javamelody
No, haven't got back to it yet... I ended up deploying the collect
server, it displays the headers much better.
> > Thanks.- Hide quoted text -
>
> - Show quoted text -

Vernat Emeric

unread,
May 29, 2012, 1:47:52 PM5/29/12
to javam...@googlegroups.com

Hi,

You can't change the "identifier" of the webapp at the end of
"monitoring taken at 5/8/12 3:08 PM on /enovia_ServerHostName" in the
monitoring report of the webapp.
Except that, as you have seen when using the optional collect server,
the identifier displayed is the one written by yourself when adding this
webapp in the collect server, so you can choose it in this case.

But, you can add a "display name", which will be added in parentheses
like this:
"monitoring taken at 5/8/12 3:08 PM on /enovia_ServerHostName (this is
the display name of the webapp)"
For that, add the following line in the web.xml file of your webapp,
inside the <web-app> ... </web-app> tag:

<display-name>this is the display name of the webapp</display-name>

This "display name" will be displayed with parentheses in the monitoring
report of the webapp (without a collect server), and also in the
monitoring report in the case that you are using a collect server.

Sorry if I am late to think about that.
bye,
Emeric


Le 24/05/2012 14:09, russell...@spiritaero.com a �crit :

russell...@spiritaero.com

unread,
May 30, 2012, 8:03:56 AM5/30/12
to javamelody
Thanks for the update Emeric.


On May 29, 12:47 pm, Vernat Emeric <ever...@free.fr> wrote:
> Hi,
>
> You can't change the "identifier" of the webapp at the end of
> "monitoring taken at 5/8/12 3:08 PM on /enovia_ServerHostName" in the
> monitoring report of the webapp.
> Except that, as you have seen when using the optional collect server,
> the identifier displayed is the one written by yourself when adding this
> webapp in the collect server, so you can choose it in this case.
>
> But, you can add a "display name", which will be added in parentheses
> like this:
> "monitoring taken at 5/8/12 3:08 PM on /enovia_ServerHostName (this is
> the display name of the webapp)"
> For that, add the following line in the web.xml file of your webapp,
> inside the <web-app> ... </web-app> tag:
>
> <display-name>this is the display name of the webapp</display-name>
>
> This "display name" will be displayed with parentheses in the monitoring
> report of the webapp (without a collect server), and also in the
> monitoring report in the case that you are using a collect server.
>
> Sorry if I am late to think about that.
> bye,
> Emeric
>
> Le 24/05/2012 14:09, russell.w.ba...@spiritaero.com a crit :
>
>
>
> > No, haven't got back to it yet...  I ended up deploying the collect
> > server, it displays the headers much better.
>
> > On May 23, 2:09 pm, Derek Hollis<dthol...@gmail.com>  wrote:
> >> Russell where you able to figure this out?  I would like to do this as well.
>
> >> On Tuesday, May 8, 2012 4:49:39 PM UTC-4, russell...@spiritaero.com wrote:
>
> >>> The default javamelody header displays as the following:
> >>> Statistics of JavaMelody monitoring taken at 5/8/12 3:08 PM on /
> >>> enovia_ServerHostName
> >>> I would like this to display my full tomcat instance name (like
> >>> enovia_dev1) instead of appending the hostname on to the file.  When
> >>> you have multiple tomcat instances on a given host the reports all
> >>> have the same header and you can not tell what report you viewing..
> >>> Any assistance would be appreciated.
> >>> Thanks.- Hide quoted text -
> >> - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages