Introduction to New Relic Platform

Introduction

"New Relic" is a powerful and open SaaS platform to monitor your entire stack; a broad range of programming languages and frameworks, including Java, .NET, PHP, Ruby, Node.js and Python.

1.jpg
 
It contains Build plugins to collect and visualize the data you want, with total freedom. All the data, insights, and customized plugins you need. All for free.  You can get immediate code-level visibility to monitor web and mobile applications, Servers and Database performances. In this article, we will see how to deploy and configure for .NET application. If you are currently experiencing performance issues with your .NET application and are unable to identify a cause, New Relic can be used to monitor your application and provide additional information that may help you determine the cause. It gives you analysis of Web and Mobile performance issues, real user experiences, server utilization, code-level diagnostics and much more. 

Compatibility and Requirements

The .NET agent runs within monitored .NET processes. There is no separate process or Windows service associated with the agent. It automatically starts with IIS application pools and can be configured to instrument any .NET process, including some non-IIS .NET applications. You can easily use it to monitor any number of applications on a local host (development environment) and also hosted environment.

Before you install the New Relic .NET agent, ensure your system meets the following requirements:

ET agent Requirements
.NET Version 2.0 and above
Operating systems
  • Windows Server 2003
  • Windows Server 2008
  • Windows Server 2012
  • Windows Vista
  • Windows 7
  • Windows 8 (x86 and x64 only)
  • Windows Azure (OS Family 1, 2, and 3)
Note: New Relic does not support Windows XP, .NET 1.x, and Windows RT.
Database The .NET Agent monitors the performance of .NET application calls to the following databases. It does not directly monitor database processes.

  • SQL Server
  • Oracle
  • MySQL
  • PostgreSQL (Npgsql .NET Data Provider)
Note: The .NET SQL parameter capture in an SQL trace does not list parameters for a parameterized query or a Stored Procedure.
Framework
  • MVC 2
  • MVC 3
  • MVC 4
  • ASP .NET Web API
  • ASP .NET Web Forms
  • WebServices
Note: New Relic does not currently support Mono, an open-source .NET framework that runs on Linux. This is because there is no Profiler API to inject into the .NET agent as a profiler into Mono-based .NET applications. The Profiler API is based on a Component Object Model (COM) interface and is not supported in Linux.
CMS
  • Umbraco
  • DotNetNuke
  • SageFrame

Please note: If your application is hosted in our Shared Environment the installation and configuration must be performed by one of our Support Technicians.

Installation and Configuration of .NET Agent

1. First, create a free account. Enter your detailed information to register your account in New Relic.

2.jpg   

2. You will be redirected to your New Relic rpm account.
3. Verify your email address before processing the deploying New Relic .NET Agent.
4. Deploy New Relic

Deploying New Relic

Deploying New Relic for your application is fast and easy; it literally takes two minutes. Once deployed, the agent automatically starts collecting and uploading performance metrics to New Relic for instant access to your application's performance data.

  • On the New Relic rpm account, go to "Applications".
  • Click the "Applications" tab
  • To start seeing data, you'll need to insert an agent into your app. Click on "Get Started".

    03.jpg

  • Select the .NET language.

    4.png
  • Select the link to download the x86 installer or the x64 installer of the .NET Agent based on the version of Windows you  are running (32/64-bit).
  • Install the downloaded .NET Agent.
  • When prompted, enter your New Relic license key that can be seen in your account in "Reveal your license Key". This is a 40-character hexadecimal string that New Relic provides.

    05.png

  • If you didn't select the option to restart IIS in the installer then you can manually restart it by opening an administrative command prompt and running:
     
    iisreset

5. Updating the .NET agent config file

To change the default agent configuration options:

  1. Edit the newrelic.config file in the %ALLUSERSPROFILE%\New Relic\.NET Agent directory.
  2. Remove the "<name>My Application</name>" line.
  3. Directly after the "browserMonitoring" Node add:           

      <applicationPools>
          <defaultBehavior instrument="true"/>
      </applicationPools>
     
  4. Save the newrelic.config file.
  5. Navigate to "C:\Program Files (x86)".
  6. Right-click on the New Relic folder and click "Properties".
  7. Click on the "Security" tab then select "Security" > "Advanced".
  8. Select all users in the Permissions list and click "Remove".
  9. Click "Add" then select "A Principle"
  10. Type "Everyone" into the "object name" box and click "OK".
  11. Check the "Full Control" box.
  12. Click "OK".
  13. Click the "Replace all child object permissions" box and click "OK".
  14. Navigate to "C:\Program Files".
  15. Right-click on the "New Relic" folder and click "Properties".
  16. Complete the preceding Steps 6 through 11 to set the correct permissions.
  17. Restart IIS (as in the installation procedure above) to enforce your changes.

6. After logging into the New Relic web app, the service will show your data on the dashboard. You can then customise your views, troubleshoot slow transactions and see inside your app in new and exciting ways!

6.png

7. You may now use the New Relic web interface at NewRelic.com to monitor your application.

7.jpg

8. By default, all agent data will appear in the New Relic user interface as a single application. If you want separate .NET applications to appear as separate applications in the UI, add an application setting to the application's configuration named NewRelic.AppName, and set its value to the name of the application.

8.jpg

Figure : Here is an example of the .NET Application Settings directory with a customized NewRelic.AppName.

Note: Yeahoooo!!! After successful deployment, you are eligible to get a free American Apparel Men's T-Shirt "Nerd Life Shirt"of your size from the New Relic T-Shirt Fairy. And yes, Don't forget to share a picture of you wearing your new shirt on Facebook or Twitter. You might even get an awesome surprise from New Relic in return.

9.png


Similar Articles