Is it possible to see method attributes value in Zico?

57 views
Skip to first unread message

yamaura

unread,
Apr 10, 2015, 8:09:06 PM4/10/15
to zorka...@googlegroups.com
Hi

I plan to monitor my web app (mainly for error tracking) with Zico(not zabbix).

# Question
(1) Is it possible to see method attributes value in Zico?
(2) if possible, what setting should I do?

# My web app env
* Windows
* Tomcat 7
* Apache Struts

# status
* I installed Zico and setting properties
* http-request param value : I can see(OK)
* exception stack trace : I can see(OK)
* method attributes : no attributes can see(NG)

# Zicos trace details message here
--
ActionErrors com.vaannila.LoginForm.validate(ActionMapping, HttpServletRequest)

This method has no attributes and hasn't thrown any exception.
--
In this case, I want to watch ActionMapping Object values in Zico
something like:
forward="/jsp/login.jsp" 
name="LoginForm" 
scope="session" 

regards

Rafal Lewczuk

unread,
Apr 25, 2015, 1:58:41 PM4/25/15
to zorka...@googlegroups.com
Hello,

Collecting arguments for all possible methods in zorka tracer would be huge overkill that would render application useless.

Yet it is still possible to add attributes for selected specific methods, for example com.vaanila.LoginForm.validate() from your application. In order to achieve this, you need to implement a simple BSH script that will contain definitions describing which methods to instrument, how to extract interesting data from these methods and what to do with them (eg. save as trace attributes).

Scripting interface for Zorka is described here: http://zorka.io/scripting/index.html

To be more specific, API for fetching and processing data is here: http://zorka.io/scripting/spyfetch.html and here: http://zorka.io/scripting/spytransform.html, whereas saving fetched data as trace attributes is described here: http://zorka.io/scripting/tattrs.html.

Also, you can look at predefined BSH scripts in zorka source tree to see examples how agent API is used.

Regards,
rle

yamaura

unread,
Apr 27, 2015, 10:13:48 AM4/27/15
to zorka...@googlegroups.com
Thank you for your reply.

I created bsh file, that went well.
Thanks.
Reply all
Reply to author
Forward
0 new messages