How to stop NewRelic on my local machine?

I am using the New Relic monitoring service using the .NET agent. It runs on a production server.

However, I also get statistics from my local machine when I test / develop the application. I used the New Relic Server Monitor configuration tool to stop the service, and also disabled it with services.msc. But I still see my local machine in the "servers" section when I test my application on newrelic.com.

What should I do (in my application or with my machine) to stop this?

+4
source share
2 answers

Windows Server Monitor is another application from .Net Agent. You need to disable the .Net agent so that your development system stops sending data to your application. If you do not want the .Net agent running on your development system at all, you can modify the newrelic.config file in% ALLUSERSPROFILE% \ New Relic \ .NET Agent to disable it by changing the following:

<configuration xmlns="urn:newrelic-config" agentEnabled="true">

to

<configuration xmlns="urn:newrelic-config" agentEnabled="false">

The advantage of this is globally, but if you want to turn it on and off for each application, you can add the following to the web application: web.config:

<appSettings> <add key="NewRelic.AgentEnabled" value="false"/> </appSettings>

+5
source

Azure (ServiceConfiguration. (Release/Local).cscfg. Windows ( " " ).

, , ;)

0

Source: https://habr.com/ru/post/1536798/


All Articles