azure-application-insights

Azure Websites Application Insights - switching config

∥☆過路亽.° 提交于 2019-12-02 21:26:55
I have an Azure Website. For the sake of this question, the production version of the website runs on example.com , and a test version of the website runs on sandbox.example.com . The only difference between the two is that they have different configuration. At present, they are running under different websites, and I deploy the same website to each azure website via git. I'd like to separate out the Application Insights data. Is there a technique or process that anyone uses - apart from editing the ApplicationInsights.config file in the sandbox environment post deploy? Or would using a

Alert creation for AppInsights fails with “Code”:“ResourceNotSupported”

一曲冷凌霜 提交于 2019-12-02 10:05:00
问题 I created an App Insights in Central US region using this script: New-AzureRmResource -ResourceName $appInsightsName -ResourceGroupName $defaultRgName -Tag @{ Name = "AppInsightsApp"; Value = $appInsightsName} -ResourceType "Microsoft.Insights/Components" -Location $defaultLocation -PropertyObject @{"Type"="ASP.NET"} -Force Now I'm trying to add an Alert to this App Insights instance using following script: $appInsights = Get-AzureRmResource -ResourceName $appInsightsName -ResourceGroupName

Solr to Application Insights

a 夏天 提交于 2019-12-02 07:52:21
How can I configure Solr logs to get sent to Azure Application Insights? I see can use a Log4J appender. https://docs.microsoft.com/en-us/azure/application-insights/app-insights-java-trace-logs Solr is an open source project, and I don't compile it myself, I just use the distribution. How can I drop in Application Insights/Log4J appender, without recompiling having installed the SDK? I just want to configure the logs to get sent to application insghts, for effectively a 3rd party application. And configure the instrumentation key. I'm normally a C# dev, but familiar with Log4Net. So appologies

Alert creation for AppInsights fails with “Code”:“ResourceNotSupported”

醉酒当歌 提交于 2019-12-02 05:48:21
I created an App Insights in Central US region using this script: New-AzureRmResource -ResourceName $appInsightsName -ResourceGroupName $defaultRgName -Tag @{ Name = "AppInsightsApp"; Value = $appInsightsName} -ResourceType "Microsoft.Insights/Components" -Location $defaultLocation -PropertyObject @{"Type"="ASP.NET"} -Force Now I'm trying to add an Alert to this App Insights instance using following script: $appInsights = Get-AzureRmResource -ResourceName $appInsightsName -ResourceGroupName $defaultRgName -ResourceType "Microsoft.Insights/Components" -Verbose Add-AlertRule -Name "Exception

Application Insights in Service Fabric?

淺唱寂寞╮ 提交于 2019-12-02 02:18:54
问题 I need to add performance logging in a Azure Service Fabric application I'm developing. I've tried to follow the following guide which seems quite straightforward and easy: https://github.com/Microsoft/azure-content/blob/master/articles/service-fabric/service-fabric-diagnostics-application-insights-setup.md Yet, I'm unable to find the package Microsoft.ServiceFabric.Telemetry.ApplicationInsights on NuGet. Since that article is from last year maybe things have changed quite a bit, but I'm not

Instrumenting windows service with Application Insights

↘锁芯ラ 提交于 2019-12-02 01:34:09
Is it possible to instrument a windows service running on premise with Application Insights? It's not necessary to have it automatically collecting metrics of the application like it does with Web applications, pushing custom events to Azure would suffice. Alan Wills -MSFT I'll make the docs a bit more clear on this. You can instrument anything if there's a core SDK that will build with it. So any kind of .NET, Java, PHP, OSX, iOS, Android, .... If you want additional modules that log web requests, crashes, etc, you're a little bit more restricted. For Windows Services on premises, follow what

Application Insights in Service Fabric?

余生颓废 提交于 2019-12-02 00:54:41
I need to add performance logging in a Azure Service Fabric application I'm developing. I've tried to follow the following guide which seems quite straightforward and easy: https://github.com/Microsoft/azure-content/blob/master/articles/service-fabric/service-fabric-diagnostics-application-insights-setup.md Yet, I'm unable to find the package Microsoft.ServiceFabric.Telemetry.ApplicationInsights on NuGet. Since that article is from last year maybe things have changed quite a bit, but I'm not sure whether configuring Insights for aan Azure Service Fabric app is quite different from any ASP.Net

API Application Insights good practice to use

China☆狼群 提交于 2019-12-01 21:43:58
问题 I read this documentation: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics There are many different API method to track exceptions, track trace etc.. I have a ASP.NET MVC 5 application. For example, I have the following controller method (called by ajax): [AjaxErrorHandling] [HttpPost] public async Task SyncDriverToVistracks(int DriverID) { if ([condition]) { // some actions here try { driver.VistrackId = await _vistracksService

API Application Insights good practice to use

最后都变了- 提交于 2019-12-01 19:46:11
I read this documentation: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics There are many different API method to track exceptions, track trace etc.. I have a ASP.NET MVC 5 application. For example, I have the following controller method (called by ajax): [AjaxErrorHandling] [HttpPost] public async Task SyncDriverToVistracks(int DriverID) { if ([condition]) { // some actions here try { driver.VistrackId = await _vistracksService.AddNewDriverToVistrackAsync(domain); await db.SaveChangesAsync(); } catch (VistracksApiException api_ex) { //

Get Page View Data from Application Insights

。_饼干妹妹 提交于 2019-12-01 12:26:45
问题 Using the .NET/C# library from Application Insights, is there a way for me to retrieve Page View data? 回答1: What library, you mean the Application Insights SDK? Then no, that is not possible. It is only for sending data. For getting data you can use the Rest API. 来源: https://stackoverflow.com/questions/45392777/get-page-view-data-from-application-insights