azure-application-insights

Share AI key between between multiple web apps and services?

限于喜欢 提交于 2019-12-05 02:11:38
We got an app suite that consist of multiple web apps, web api's and windows services. Today we have one instrumentation key per webapp / api / service, in addition one per environment. This gets a bit messy and we're thinking it would have been better to only one shared key per environment. Are there other ways to aggregate and visulize the AI data from multiple keys, or should be move all our keys into one shared? Regards Larsi In general, there are several considerations. To illustrate, let's assume you have two "components" A and B Visibility scope - do you analyze telemetry about A and B

How can I retrieve the instrumentation key for an Application Insights instance in an Azure Resource Group Template?

帅比萌擦擦* 提交于 2019-12-05 00:04:39
Is there any way to retrieve the Instrumentation Key for an Application Insights instance in an Azure Resource Group template ? I've tried the instructions here to retrieve the list of list* operations available on Azure resources, but Microsoft.Insights/components doesn't appear in the list anywhere. It's making me think that retrieving an Instrumentation Key in the template isn't currently possible After some digging and experimenting, this is what I found works: "outputs": { "MyAppInsightsInstrumentationKey": { "value": "[reference(resourceId('Microsoft.Insights/components', variables(

Application Insights added ConnectedService.json file to my project, what does this do?

我们两清 提交于 2019-12-04 23:46:42
I have added application insights to my asp.net 4.6 web application. This also added the file Service References\Application Insights\ConnectedService.json The contents of this file: { "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider", "Version": "7.1.719.1", "GettingStartedDocument": { "Uri": "https://go.microsoft.com/fwlink/?LinkID=613413" } } What is this file for? It does not seem to provide any logic to my application and does not seem to be required for anything to work. John Gardner This file is simply a marker to the Visual Studio "Connected

add app insights trace logging to .net core console application

为君一笑 提交于 2019-12-04 17:27:06
I've got a .net core console application (not AspNetCore), and I want to add app insights logging that will push out the trace logs to app insights. I have tried using Microsoft.ApplicationInsights.AspNetCore, but when I do: factory.AddApplicationInsights(serviceProvider); it throws an error saying it can't find the hosting environment Unable to resolve service for type 'Microsoft.AspNetCore.Hosting.IHostingEnvironment' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore.TelemetryInitializers.AspNetCoreEnvironmentTelemetryInitializer'. presumably because this is not an

How to prevent losing telemetry events with Application Insight's Persistence Channel?

╄→гoц情女王★ 提交于 2019-12-04 11:36:17
I have integrated Microsoft Application Insights into my Windows Forms app. In the document Application Insights on Windows Desktop apps, services and worker roles which uses the default in-memory channel, after flushing the application sleeps for one second before exiting. tc.Flush(); // only for desktop apps // Allow time for flushing: System.Threading.Thread.Sleep(1000); The document states: Note that Flush() is synchronous for the persistence channel, but asynchronous for other channels. As this example is using the in-memory channel, I can deduct that flushing in the code example is

Azure application insights or log analytics

≯℡__Kan透↙ 提交于 2019-12-04 11:35:11
What is the use case for Azure application insights or log analytics? I am using APIM and Azure Functions and want to perform logging for requests. Which one is the best fit, application insights or log analytics? https://docs.microsoft.com/en-gb/azure/azure-monitor/overview Update In particular, any info on Azure application insights vs log analytics used for APIM? What used to be known as Application Insights and Log Analytics independent offerings - are now a part of Azure Monitor. We're actively merging both platforms. For instance, Analytics exploration part is exactly the same (same

Configurable Application Insights Instrumentation Key

旧时模样 提交于 2019-12-04 11:28:48
How can I best make the Application Inisghts' Instrumentation Key configurable in a way that allows an Azure Administrator to manage the settings for an App Services deployment of an MVC5 web application? Is there a certain event in an MVC application initialization where this should be done or is it okay to do it at pretty much any point? I am using the Trace Listener integration as well. By default, the Instrumentation Key (iKey) is set in the ApplicationInsights.config file. Additionally, if you include the JavaScript portions, the iKey is again set in the _Layout.cshtml file. This is two

How to stop running multiple application insights for Azure Web App?

给你一囗甜甜゛ 提交于 2019-12-04 10:23:34
We have enabled Application Insights for an Azure Web App. The following highlighted Application Insights automatically added to the app service even after deleted manually. Is there anyway to permanently disable/delete this? NOTE: We have configured Scale Out (Max: 10 instances) for the App Service. It seems that the old extension was not properly removed when you enabled the new experience. Even though the App Service doesn't show the "Microsoft.ApplicationInsights.AzureWebSites" extension as being installed, the extension is still there and periodically writes ApplicationInsightsProfiler2.

disable send diagnostics data to application insights on publish settings

家住魔仙堡 提交于 2019-12-04 09:38:22
I've created a web role on vs2013 and recently upgraded it to vs2015. When publishing the role to Azure, the send diagnostics data to application insights is turned on. Since I don't want to use the application insights each time, when I need to publish my role I need to uncheck the checkbox. Is there a way to permanently uncheck this option? You can avoid getting the "Diagnostics" tab in the publish dialog by following these steps: Open the Properties page for one of the roles in your project Under Diagnostics , check the "Send diagnostics data to Application Insights" checkbox Select to

Application insights and service fabric?

不问归期 提交于 2019-12-04 07:51:21
I found this from several months back on Application Insights and Service Fabric and I'm wondering if there is any new information. I would really like to get CPU, Memory, Storage and other metrics out of service fabric and the reliable actors. Having it presented in a user friendly HUD like app insights provides would be awesome! Thanks! On the azure portal, you can now create a resource called 'Service Fabric Analytics' to create a nice dashboard for your cluster. Configure as cluster like described here . It's OMS based, not Appinsights though. The Service Fabric Solution helps identify and