Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-07-2017 01:55 AM
Hi all,
I want to configure business transcation monitoring for a simple application. The code for it is there - repository.
It has 2 applications - Front and Back. Both applications uses Spring Boot, Netty and Apache Camel. Front application waitng for get request and passed it (using simple Camel route) to back application. Back application responses with hardcoded string.
While monitoring these applications using app dynamics agent, agent does not detect any business transactions.
How to configure agent to monitor whole transaction?
11-07-2017 02:27 AM
If you do not see a transaction flow in AppDynamics with only the out of the box configuration, it is because your transactions are not hitting any entry point instrumentation. In this case, that is because you are using the v4 netty http client and server, which are not covered by the out of the box instrumentation today.
If you add the following additional configuration to <agent-install-dir>/v4.x.y/conf/custom-activity-correlation.xml (within the <activities> element) you should see your transaction activity.
<producer>
<instrumentation>
<class-name>io.netty.handler.codec.http.HttpObjectEncoder</class-name>
<method-name>encodeHeaders</method-name>
<match-type>MATCHES_CLASS</match-type>
</instrumentation>
<identifiers>
<identifier name="HOST">
<data-gatherer-type>POSITION</data-gatherer-type>
<position>0</position>
<getter-chain>get(Host)</getter-chain>
<transformer-type>GETTER_METHODS</transformer-type>
</identifier>
</identifiers>
<correlation>
<payload-pointer>
<data-gatherer-type>POSITION</data-gatherer-type>
<position>0</position>
<getter-chain>this</getter-chain>
<transformer-type>GETTER_METHODS</transformer-type>
</payload-pointer>
<payload-operation>
<access-type>method</access-type>
<access-method>add</access-method>
<param-types>java.lang.String, java.lang.Object</param-types>
</payload-operation>
</correlation>
</producer>
<producer in-process="true" activity-type="NettyProcess">
<instrumentation>
<class-name>io.netty.channel.DefaultChannelPipeline</class-name>
<method-name>writeAndFlush</method-name>
<match-type>MATCHES_CLASS</match-type>
</instrumentation>
<correlation>
<payload-pointer>
<data-gatherer-type>POSITION</data-gatherer-type>
<position>0</position>
<getter-chain>this</getter-chain>
<transformer-type>GETTER_METHODS</transformer-type>
</payload-pointer>
</correlation>
</producer>
<consumer in-process="true" identify-transaction="true">
<instrumentation>
<class-name>io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask</class-name>
<method-name>write</method-name>
<match-type>MATCHES_CLASS</match-type>
</instrumentation>
<correlation>
<payload-pointer>
<data-gatherer-type>POSITION</data-gatherer-type>
<position>1</position>
<getter-chain>this</getter-chain>
<transformer-type>GETTER_METHODS</transformer-type>
</payload-pointer>
</correlation>
</consumer>
07-13-2018 03:14 AM
I have the same requirement. And I tried your method, it didnt work. It would be great help if you could help me auto discover Netty framework based proxy application.
07-13-2018 04:06 AM
Auto discovery for transactions originating in the netty 4 web server is a backlog item currently.
In the short term, you are best off working with support to identify a configuration that works for your environment.
Warm regards,
Peter
01-17-2019 11:40 AM
I need this instrumentation too.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form