azure-application-insights

Can I download data collected by Azure Application Insights (events list)?

半世苍凉 提交于 2019-12-12 02:22:58
问题 Viewing Event Application Insight logs in browser on portal.azure.com is highly impractical. I want to download those logs as, for example, Excel file. There actually is an "Export" button, but what it does is: it shows how many times one event was fired and there are no event details here. 回答1: You can continuously export data to Azure blob storage as described in that part of the documentation: https://azure.microsoft.com/en-us/documentation/articles/app-insights-export-telemetry/ From

How to support multiple Azure subscriptions for a single application with application insights

孤者浪人 提交于 2019-12-12 01:47:55
问题 I'm running VS 2013 Update 3 and have a Cloud Service with App Insights installed. That is all good and well. However, I have three different subscriptions (dev, staging, and production) and want my dev cloud service instance to report app insights data to my dev subscription while my staging cloud service instance reports app insights data to my staging subscription. How can I configure this single cloud app to report data to different subscriptions and/or app insights app names? 回答1: I

Unable to get Application Insights to show debugging telemetry

别来无恙 提交于 2019-12-11 18:47:30
问题 I am a total noob with Application Insights, and sadly for a whole day of trying I have been unable to get it working at all. I tried with the following code: this.telemetryClient = new TelemetryClient(TelemetryConfiguration.CreateDefault()); this.telemetryClient.TrackTrace($"Test", Microsoft.ApplicationInsights.DataContracts.SeverityLevel.Warning); But when I go to the application insights window and show all telemetry from the current debugging session there is nothing logged. One user said

Azure Web App Service trigger alert if X% of the requests fail

百般思念 提交于 2019-12-11 18:44:35
问题 I have been trying to set up alerts of a .NET Core App Service hosted in Azure to fire an event if X% of the requests are failing in the past 24 hours. I have also tried setting up an alert from the Service's AppInsights resource using the following metrics: Exception rate, Server exceptions, or Failed request. However, none of these have the ability to capture a % (failure rate) , all of them are using count as a metric. Does anyone know a workaround for this? 回答1: Please try the query-based

How to have “Request” events with authenticated user id?

对着背影说爱祢 提交于 2019-12-11 11:55:42
问题 I have instrumented my web application to have telemetry events sent to azure portails with the authenticated user id when available. It works for TrackEvent coming from backend : for that once my user is authenticated , I add some information in the HttpContext.Current.Session that I am using in the TelemetryInitialiser. public class MyTelemetryInitializer : ITelemetryInitializer { public void Initialize(ITelemetry telemetry) { if (HttpContext.Current?.Session?["user"] != null) { // Set the

BadHttpRequestException caused by slow clients are showing up in my application insights

做~自己de王妃 提交于 2019-12-11 11:29:19
问题 One caller of my API sometimes has some performance issues where they max out at 100% CPU on their end and my API is rejecting some of their calls due to request timeouts (HTTP 408). This is fine for me as I consider it protection to reject the calls. However, it also triggers alerts in Application Insights because the timeout is being tracked as an exception. The requests are POSTs. What can I do to prevent this? I looked into filtering configuration for Application Insights, but I was

How to get the Qna Maker “Q” from Analytics Application Insights?

懵懂的女人 提交于 2019-12-11 10:16:38
问题 I have created my chatbot's knowledge base with Qna Maker and I am trying to visualize some statistics with Analytics Application Insights. What I want to do I would like to create a chart with the most requested Qna Maker questions. My problem I can't find the Qna Maker questions in the customDimensions traces on Analytics but only their Id : My question Is their a way to get the Qna Maker Question linked to this Id directly from the Analytics Application Insights tool ? Thank you. PS : I

How to set session id or create custom field into ApplicationInsights from FunctionApp

大憨熊 提交于 2019-12-11 08:45:36
问题 Function app is as below: public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)]HttpRequestMessage request, ILogger log) { log.LogInformation("Information", infoOBject); } local.json file has applicationInstrument key. How to add additional field and set "Session_Id" for "Request" entry in application insights. 回答1: You need to this using some custom logging from Application Insights First, install the Nuget package Install-Package

Authenticate on Application Insights REST API with AAD

大憨熊 提交于 2019-12-11 08:42:25
问题 So far I used successfully Application Insights REST API for getting metrics with X-Api-Key header. https://api.applicationinsights.io/beta/apps/xxxxxxxxxx/metrics/customMetrics%2FmetricName?timespan=PT2H&interval=PT20M&aggregation=min However with our new dashboard, crawling several metrics, we hit hard the 1500 request/api key limit. Some suggest to play around with several api keys, but I would like to prevent this approach. According to documentation, authenticate with AAD would remove

AiHandleErrorAttribute Vs. Built-In auto added Action Filter provided by Application Insights

限于喜欢 提交于 2019-12-11 08:12:29
问题 I just installed Application Insights into my ASP.NET MVC application. It's actually an Umbraco website, and the registration is slightly different but the result should be the same. When installing the package, it added some code for me to register a new Exception Action Filter globally called 'AiHandleErrorAttribute'. I'm registering it the Umbraco way using an event handler: public class RegisterAIEventHandler : ApplicationEventHandler { protected override void ApplicationInitialized