Go to All Forums

Enable/Disable Site24x7 in .net core 2.2

I want to how can I enable disable the application inside my .net core application.

Below is the response which I got from you technical team but it not working.

Regarding the .NET Core agent, you can enable or disable the agent. By default, the agent will be in the enabled state. You can disable the agent using the below steps:

  1. Open the <ApplicationPublishPath>/apmapplication.conf (Note: This will be created on start monitoring the application. You can create this file even before starting the .NET Core application).
  2. Add the below key value in the file apmapplication.conf to disable the agent.
    •  agent.enabled%3Dfalse
  1. Restart the .NET Core application.

Please suggest. 

Like (1) Reply
Replies (1)

Hi,

A .NET Core application can be excluded from monitoring by following the below steps,

  1. Navigate to the application's root directory where you start the .NET core application. It may be the .NET core application's build output path or application's publish directory.
  2. You can find the apmapplication.conf file if the application is being monitored already. If not you can create this file in the path.
  3. Open the file and add the below key value to exclude/disable the application from being monitored.
    • agent.enabled=false
  4. Save the file and restart the .NET core application. If it is hosted on IIS, reset the IIS.
  5. Start performing some transactions.
  6. If the monitor is already created for this application, you can suspend the monitor in the site24x7 portal.

If it is still not working, please contact support@site24x7.com. We may schedule a remote session to troubleshoot it at your convenience time.

 
Regards,
Anbu
APM Insight .NET Agent

 

Like (0) Reply

Was this post helpful?