Data collection in .NET agent

How .NET agent collects data

APM Insight .NET Agent is a profiling based monitoring solution. It uses the profiling APIs provided by Microsoft frameworks and hooks itself into the ASP.NET worker process.

The general workflow for monitoring is as given below :
  • The .NET agent monitoring starts when the profiler is loaded into the respective application's worker process (w3wp.exe)
    • A worker process is initialized and/or an app domain is created for an application on the first request it processes. So no data collection will happen if no request is processed by the application
    • In the current version of the agent, the profiler can only be loaded/unloaded during process start/stop. This is the reason for recycling app pools (prior to version 2.5, an iisreset was done) when there is a change in appfilter configurations
  •  When monitoring begins, a seperate thread is spawned in the application which establishes connection with the Windows service and sends monitoring data as and when it happens   
    • Monitoring data is collected inside each of the request threads and is sent to the Windows service
    • If the web application is idle or there are no incoming requests, no data will be sent to the service
  • The Windows service aggregates data from each application and sends it to the Site24x7 servers once every minute
    • If there is no data for a particular application, empty data is sent, so that status of the application in Site24x7 console is UP
    • Related Articles

    • Site24x7 Real User Monitoring (RUM) - Data Collection

      When you include Site24x7 RUM beacon script in your web pages, the following data is collected. All data that's being collected is in accordance with GDPR compliance. Performance details of web page load time - Metrics like response time of web page ...
    • Bundled .NET and .NET Core agents in a single MSI

      In APM Insight .NET agent version 6.8.0, the .NET and .NET Core agents have been bundled into a single MSI, enabling unified monitoring of both application types. Upgrade requirements for .NET Core agent 6.7 and below If you're using .NET Core agent ...
    • No data for service and process in Windows server monitor

      If you see "No Data" for process and service metrics (such as CPU or memory usage of monitored services) in the Site24x7 Windows server monitor user interface, follow the troubleshooting steps below. Run PowerShell Commands Open PowerShell as ...
    • How to identify and resolve conflicts between other APM products and the APM Insight .NET agent

      Problem statement: You are experiencing either of the below issues and suspect that another APM product is interfering with the Site24x7 .NET agent. 1. The .NET monitor is not created under APM > APM Insight > Applications, even after the .NET agent ...
    • Understanding latency in data center operations

      Latency, measured in milliseconds (ms), is the time taken for a response to be generated by an application or service. Lower latency results in quicker responses. Latency can occur due to several factors like: Network traffic: High volumes can slow ...