Reputation: 135
I would like to configure New Relic on an Azure Mobile Services instance with a .Net backend. The instructions I found seem to relate only to the Azure Mobile Services with JavaScript backend: http://azure.microsoft.com/en-us/documentation/articles/store-new-relic-mobile-services-monitor/
I tried the instructions to install New Relic on Azure Cloud Services, hoping that that would resemble the Azure Mobile Services, but unfortunately that didn't work. It showed the following error messages:
*Updating project items newrelic.cmd, NewRelicAgent_x64_3.4.24.0.msi, and NewRelicServerMonitor_x64_3.2.6.0.msi
*Updating the Windows Azure ServiceDefinition.csdef with the newrelic.cmd Startup task Unable to find the ServiceDefinition.csdef file in your solution, please make sure your solution contains an Azure deployment project and try again.
Updating the Windows Azure ServiceConfiguration..cscfg files with the license key Unable to find any ServiceConfiguration.cscfg files in your solution, please make sure your solution contains an Azure deployment project and try again.
*Updating the projects .config file with the NewRelic.AppName
*Package install is complete
Azure Mobile Services doesn't use an Azure deployment project so the necessary settings for New Relic cannot be stored there.
Now my question: does anyone know how to get New Relic working for Azure Mobile Services with a .Net backend?
Thanks, Jeffry
Upvotes: 3
Views: 315
Reputation: 87238
You can use the NewRelic with the .NET backend, but you'll need to do some manual work since the built-in support isn't ready yet. Here are the steps you'll need (I'll reference the tutorial to add NewRelic monitoring for the node.js backend to avoid rewriting what is already there):
1
{71DA0A04-7777-4EC6-9643-7D28B46A8A41}
d:\Home\site\wwwroot\newrelic
d:\Home\site\wwwroot\newrelic\NewRelic.Profiler.dll
Notice that the extra steps listed below (adding custom application settings) is a temporary workaround while the product doesn't finish the integration between the .NET backend and the developer analytics.
Upvotes: 1
Reputation: 135
Ok, I managed to get it working with the help from someone from the Azure Mobile Services team. The reason it doesn't work is a bug that will be fixed, but in the mean time there's an easy work around.
These are the steps to get it working:
Add these extra settings under “app settings”
a. COR_ENABLE_PROFILING = 1
b. COR_PROFILER = {71DA0A04-7777-4EC6-9643-7D28B46A8A41}
c. NEWRELIC_HOME = d:\Home\site\wwwroot\newrelic
d. COR_PROFILER_PATH = d:\Home\site\wwwroot\newrelic\NewRelic.Profiler.dll
Fire off a few requests to your service
a. You can use the built-in test client right in the browser, for example: http://newrelictest.azure-mobile.net/help/Api/GET-tables-TodoItem
b. To authenticate leave the username blank and paste in your app key as the password. You can find your app key in the portal under “manage keys”.
c. Press “try it out” and then send a few GETs
Upvotes: 3
Reputation: 91
If deploying the .NET agent to Azure Mobile Services is possible, nobody has documented it. Microsoft provided the capability for deploying the Node.js agent in Mobile Services; they will need to do the same for the .NET agent. Your best option is to contact Microsoft Azure support directly.
Please post back here if they have a solution. It would be great to include this both within stackoverflow and on the New Relic Community Forums.
Regards, Kyle
Upvotes: 2