<?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 OneAgent plugin for monitoring Java app executed by tomcat in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127198#M1358</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create an OneAgent plugin which will monitor used system descriptors by Java app (executed by Tomcat).&lt;/P&gt;&lt;P&gt;Here is plugin.json for it:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "name": "custom.python.descriptors_counter_plugin",&lt;BR /&gt;&amp;nbsp; "version": "0.01",&lt;BR /&gt;&amp;nbsp; "type": "python",&lt;BR /&gt;&amp;nbsp; "entity": "PROCESS_GROUP_INSTANCE",&lt;BR /&gt;&amp;nbsp; "metricGroup": "descriptors_counter_metrics",&lt;BR /&gt;&amp;nbsp; "processTypeNames": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "JAVA"&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; "source": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "package": "descriptors_counter_plugin",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "className": "DescriptorsPlugin",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "activation": "Singleton"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "metrics": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timeseries": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "key": "used_descriptors",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "unit": "Count",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "displayname": "Used descriptors count"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; "configUI": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "displayName": "OneAgent Used Descriptors Plugin"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;And how it gets Process Group:&lt;/P&gt;&lt;PRE&gt;pgi = self.find_single_process_group(pgi_name('tomcat'))&lt;/PRE&gt;&lt;P&gt;On the server exists several &lt;STRONG&gt;tomcat &lt;/STRONG&gt;groups.&lt;/P&gt;&lt;P&gt;I build it and uploaded it to Dynatrace but didn't find any changes for the tomcat section in UI.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Therefore several questions:&lt;/P&gt;&lt;P&gt;1. How to make sure that my plugin actually reached the hosts? I grep'ed through &lt;EM&gt;/opt/dynatrace/oneagent/log &lt;/EM&gt;name of the plugin on one of them didn't find any mentions about my plugin;&lt;/P&gt;&lt;P&gt;2. What &lt;STRONG&gt;processTypeNames&lt;/STRONG&gt; should I use in &lt;STRONG&gt;plugin.json &lt;/STRONG&gt;JAVA or TOMCAT?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 15:07:22 GMT</pubDate>
    <dc:creator>andrii_shevchyk</dc:creator>
    <dc:date>2020-02-06T15:07:22Z</dc:date>
    <item>
      <title>OneAgent plugin for monitoring Java app executed by tomcat</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127198#M1358</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create an OneAgent plugin which will monitor used system descriptors by Java app (executed by Tomcat).&lt;/P&gt;&lt;P&gt;Here is plugin.json for it:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "name": "custom.python.descriptors_counter_plugin",&lt;BR /&gt;&amp;nbsp; "version": "0.01",&lt;BR /&gt;&amp;nbsp; "type": "python",&lt;BR /&gt;&amp;nbsp; "entity": "PROCESS_GROUP_INSTANCE",&lt;BR /&gt;&amp;nbsp; "metricGroup": "descriptors_counter_metrics",&lt;BR /&gt;&amp;nbsp; "processTypeNames": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "JAVA"&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; "source": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "package": "descriptors_counter_plugin",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "className": "DescriptorsPlugin",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "activation": "Singleton"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "metrics": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "timeseries": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "key": "used_descriptors",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "unit": "Count",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "displayname": "Used descriptors count"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; "configUI": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "displayName": "OneAgent Used Descriptors Plugin"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;And how it gets Process Group:&lt;/P&gt;&lt;PRE&gt;pgi = self.find_single_process_group(pgi_name('tomcat'))&lt;/PRE&gt;&lt;P&gt;On the server exists several &lt;STRONG&gt;tomcat &lt;/STRONG&gt;groups.&lt;/P&gt;&lt;P&gt;I build it and uploaded it to Dynatrace but didn't find any changes for the tomcat section in UI.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Therefore several questions:&lt;/P&gt;&lt;P&gt;1. How to make sure that my plugin actually reached the hosts? I grep'ed through &lt;EM&gt;/opt/dynatrace/oneagent/log &lt;/EM&gt;name of the plugin on one of them didn't find any mentions about my plugin;&lt;/P&gt;&lt;P&gt;2. What &lt;STRONG&gt;processTypeNames&lt;/STRONG&gt; should I use in &lt;STRONG&gt;plugin.json &lt;/STRONG&gt;JAVA or TOMCAT?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:07:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127198#M1358</guid>
      <dc:creator>andrii_shevchyk</dc:creator>
      <dc:date>2020-02-06T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent plugin for monitoring Java app executed by tomcat</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127199#M1359</link>
      <description>&lt;P&gt;Not sure what you mean by "system descriptors" but you can get FileDescriptor counts very easily via JMX and the java.lang.OperatingSystem MBean.&lt;/P&gt;&lt;P&gt;Attached is a custom JMX plugin that determines OpenFileDescriptorCount and MaxFileDescriptorCount for any Java process:&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.dynatrace.com/storage/attachments/23518-customjmxcreatedplugin-filedescriptor1562237850889.zip" target="_blank" rel="noopener noreferrer"&gt;custom.jmx.CreatedPlugin_FileDescriptor1562237850889.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:44:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127199#M1359</guid>
      <dc:creator>Enrico_F</dc:creator>
      <dc:date>2020-02-06T16:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent plugin for monitoring Java app executed by tomcat</title>
      <link>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127200#M1360</link>
      <description>&lt;P&gt;Dear Andrii,&lt;/P&gt;&lt;P&gt;please replace the &lt;STRONG&gt;processTypeNames&lt;/STRONG&gt; property by the &lt;STRONG&gt;technologies &lt;/STRONG&gt;property in the form:&lt;/P&gt;&lt;PRE&gt;"technologies": [ "TOMCAT" ]&lt;/PRE&gt;&lt;P&gt;The value of the technologies can be taken from the UI - on the process level you can find 'Main technology' property for the process, see the attached snapshot:&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23582-1581321531071.png" /&gt;&lt;/P&gt;&lt;P&gt;You can also find this info in Activation tips of Plugin life cycle in the most recent documentation available in our SDK.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 08:03:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/OneAgent-plugin-for-monitoring-Java-app-executed-by-tomcat/m-p/127200#M1360</guid>
      <dc:creator>Piotr_Meller</dc:creator>
      <dc:date>2020-02-10T08:03:34Z</dc:date>
    </item>
  </channel>
</rss>

