<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monitoring an application that uses mainly WebSocket communication in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732571#M8051</link>
    <description>&lt;P&gt;No, we never got this resolved. Our conclusion was that AppD's out-of-the-box support for ws:/wss: communication is very limited. It probably would be possible to set it up, but it seems that a lot of manual configuration would be required.&lt;/P&gt;
&lt;P&gt;Since our own software (which we were trying to monitor with AppD) itself happens to be a sensor data collection and analysis system (though primarily for geophysical sensors) we ended up implementing our own "self-monitoring" system by introducing synthetic sensors that were implemented via JMX, etc.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 17:28:17 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2019-04-16T17:28:17Z</dc:date>
    <item>
      <title>Monitoring an application that uses mainly WebSocket communication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732569#M8049</link>
      <description>&lt;P&gt;Our application is a cloud platform that gives users access to embedded systems and IoT devices. Whereas we do have&amp;nbsp;a small HTTP-based web API, the majority of communication and interaction happens via Web Socket communication on three different ports. On some of the ports the higher-level transmission protocol is JSON-RPC 2.0, other ports use a number of custom binary protocols.&lt;/P&gt;
&lt;P&gt;We use the&amp;nbsp;&lt;A href="https://netty.io/" target="_blank" rel="nofollow noopener noreferrer"&gt;Netty 4.1&lt;/A&gt;&amp;nbsp;framework to implement WebSocket communication.&lt;/P&gt;
&lt;P&gt;Little to no traffic happens over HTTP.&lt;/P&gt;

&lt;P&gt;AppDynamics has been able to identify some basic business transactions, mainly centered around GWT, which is one of the mechanisms we use for front-end communication. However, for device communication AppD has not been able to auto-detect meaningful endpoints.&lt;/P&gt;

&lt;P&gt;So,&amp;nbsp;my detailed questions are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What is a good way to set-up monitoring for the WebSocket communication that has not been autodetected?&lt;/LI&gt;
&lt;LI&gt;How do we set up a health check that, e.g., sends a particular JSON-RPC message on the Web Socket and measures the time until we receive a response?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 13 Mar 2018 00:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732569#M8049</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-03-13T00:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring an application that uses mainly WebSocket communication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732570#M8050</link>
      <description>&lt;P&gt;I have the same issue. Did you get any answer for this question?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 04:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732570#M8050</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-16T04:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring an application that uses mainly WebSocket communication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732571#M8051</link>
      <description>&lt;P&gt;No, we never got this resolved. Our conclusion was that AppD's out-of-the-box support for ws:/wss: communication is very limited. It probably would be possible to set it up, but it seems that a lot of manual configuration would be required.&lt;/P&gt;
&lt;P&gt;Since our own software (which we were trying to monitor with AppD) itself happens to be a sensor data collection and analysis system (though primarily for geophysical sensors) we ended up implementing our own "self-monitoring" system by introducing synthetic sensors that were implemented via JMX, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 17:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732571#M8051</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-16T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring an application that uses mainly WebSocket communication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732572#M8052</link>
      <description>&lt;P&gt;We're evaluating the product for our NodeJS&amp;nbsp; Express/Socket.io app and not seeing anything reporting in the dashboard for websocket events.&lt;/P&gt;

&lt;P&gt;We are also NOT seeing any remote HTTP calls our app makes to external HTTP REST endpoints.&lt;/P&gt;

&lt;P&gt;The only thing we're seeing in the "Remote Services" tab is our connection to Redis.&lt;/P&gt;

&lt;P&gt;Although they advertise HTTP and Socket.io monitoring, it doesn't look like it's working very well.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732572#M8052</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-05-08T20:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring an application that uses mainly WebSocket communication</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732573#M8053</link>
      <description>&lt;P&gt;Conceptually, the core construct that AppDynamics monitors is event based communication, where the processing of each message is one Business Transaction.&lt;/P&gt;

&lt;P&gt;Being stream based, rather than message based,&amp;nbsp; raw web sockets do not fit well into this model.&amp;nbsp; If your application operates a higher level message-based protocol over websockets where a complete message is sent over the socket and received, processed and replied to on the server, then the server side activity should be modelled as a Business Transaction, and will be tracked as such by AppDynamics.&lt;/P&gt;

&lt;P&gt;Business Transactions must start from an entry point the agent knows about.&amp;nbsp; The agents automatically detect some entry-points by virtue of the transaction logic being placed in a well-known container (e.g. within a servlet for java HTTP).&amp;nbsp; Business Transactions originating at points in code that are not known to the AppDynamics require custom configuration to be recognised (a &lt;A href="https://docs.appdynamics.com/display/PRO45/POJO+Entry+Points" target="_self" rel="nofollow noopener noreferrer"&gt;POJO entry point&lt;/A&gt;, in the case of java, or using &lt;A href="https://docs.appdynamics.com/display/PRO45/Node.js+Agent+API+User+Guide#Node.jsAgentAPIUserGuide-BusinessTransactionDefinition" target="_self" rel="nofollow noopener noreferrer"&gt;the agent API&lt;/A&gt; in the case of the Node.js agent).&lt;/P&gt;

&lt;P&gt;Backend activity (e.g. your external REST calls) will only be tracked if it is in the context of a Business Transaction (and made through a client that is either instrumented out of the box, or via configuration)&lt;/P&gt;

&lt;P&gt;To my knowledge, none of our agents support out of the box instrumentation for socket.io; a quick look suggests to me that is is event based, so if you were to instrument socker.emit() as an exit and socket.on() as a Business Transaction entry, I think you would see what you are expecting.&lt;/P&gt;

&lt;P&gt;If the messages are passing between server-side components and you additionally arrange for the AppDynamics correlation header to be passed in the message payload then AppDynamics would also show you the end to end correlation.&lt;/P&gt;

&lt;P&gt;I hope that explanation helps.&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Monitoring-an-application-that-uses-mainly-WebSocket/m-p/732573#M8053</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2019-05-09T10:40:14Z</dc:date>
    </item>
  </channel>
</rss>

