Windows Desktop Application Monitoring


Monitor your stand-alone Windows desktop applications developed in the .NET platform with the APM Insight .NET agent from Applications Manager. Gain visibility into your console applications as well as the performance of your method calls.

How it works

In general, the APM Insight .NET agent monitors .NET applications hosted in IIS Servers. By default, contextual information is instrumented and reported for HTTP requests from these applications' web transactions. 

Since Windows desktop and console applications don't communicate via HTTP requests, their default methods are monitored with the help of custom instrumentation to track their application performance. 

With the help of Custom Instrumentation Manager, you can monitor exceptions, database calls, web service calls, and third-party packages like loggers, caching, and NoSQL calls. To view the performance of each individual transaction, use Custom Instrumentation Manager to add additional methods from application-dependent dynamic-link library (DLL) files.

Configuration instructions for agents below Version 4.8

  1. Log in to your Applications Manager account, then go to APM Insight tab and download the .NET Agent. For details, refer these installation instructions.
  2. After installing the agent, select the Enable windows desktop application monitoring checkbox in the Edit configurations dialogue box, then click Save.
  3. Open the application configuration file for the Windows application that you want to monitor.
  4. In the application configuration (app.config) file , enable custom instrumentation by adding the following code under <appSetting>:
    • Add a new key named apminsight.enabled and set the value as true.
    • Add a new key named apminsight.appname and specify its value as the name of the application you wish to monitor.
    • Here is sample code for these two steps:

      <?xml version="1.0" encoding="utf-8"?>
      <configuration>

        <appSettings>
           <add key="apminsight.enabled" value="true" />

           <add key="apminsight.appname" value="TestWindowsApp" />

          </appSettings>
      </configuration>

  5. Save the application configuration file.
  6. Load the corresponding EXE version of the file in Custom Instrumentation Manager and select which Windows application process methods you want to add.
  7. To monitor more methods, add the corresponding DLLs of desktop or console apps in Custom Instrumentation Manager.
  8. Restart the application.

Configuration instructions for agents Version 4.8 and above

  1. Log in to your Applications Manager account, navigate to APM Insight tab and download the .NET Agent. For details, refer these installation instructions.
  2. After installing the agent, select the Enable windows desktop application monitoring checkbox in the Edit configurations dialogue box and click Save.
  3. Select the standalone applications to be monitored.
  4. Provide a unique name for each application selected in the text box under the column Application Name and Click Save.
  5. Restart the standalone applications to be monitored.
  6. To monitor more methods, add the add the corresponding DLLs of the standalone apps in Custom Instrumentation manager and select the frequently called primary methods.
  7. Restart the application.

Output

To view the output of monitored methods, navigate to APM → Your APM Insight DOTNET Application/Instance → Transactions → Recent 5 Traces of this Transaction → Trace details.