azure-application-insights

Is there memory impact or performance cause without TelemetryClient.Flush()

删除回忆录丶 提交于 2019-12-11 08:03:53
问题 Using telemetry client to log custom event log as follow: var telemetryClient = new TelemetryClient(); telemetryClient.InstrumentationKey = "<your actual insight instrumentkey>"; telemetryClient.TrackRequest(req.RequestUri.ToString(), DateTime.Now, Stopwatch.StartNew().Elapsed, "200", true); My question is: do we need to flush the client using telemetryClient.Flush() or is it not required? Even when not flushing it also works and we are able to see the log. 回答1: Usually, you don't need to

Application Insights Live Metrics with ASP.Net MVC and Web Api

两盒软妹~` 提交于 2019-12-11 07:39:43
问题 we want to monitor one of our application with Azure Application Insights. It is an ASP.Net 4 MVC application with Web Api 2. I've created a new Application Insights resource in Azure and I've installed the following NuGet packages into the project: <package id="Microsoft.ApplicationInsights" version="2.3.0" targetFramework="net462" /> <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.7" targetFramework="net462" /> <package id="Microsoft.ApplicationInsights

Page results from Azure Application Insights Analytics API

核能气质少年 提交于 2019-12-11 07:29:42
问题 Is it possible to "page" the results from the Analytics API? If I use the following Query (via http POST) { "query":"customEvents | project customDimensions.FilePath, timestamp | where timestamp > now(-100d) | order by timestamp desc | limit 25" } I get up to 10,000 results back in one result set. Is there any way to use something similar to the $skip that they have for the events API? Like "SKIP 75 TAKE 25" or something to get the 4th page of results. 回答1: [edit: this answer is now out of

Application Insights Analytics doing sub selects

做~自己de王妃 提交于 2019-12-11 07:11:04
问题 I am using this reference documentation for Application Insights. How can I do a sub-select using the output of a different query? //Query 1 Events | where Timestamp >= ago(30min) and Data contains('SomeString') | project TraceToken //I would like to use the first query's output in the subselect here. Events | where TraceToken in ({I would like to use the First query's output here.}) Is a join better in this scenario. Which would have better performance. 回答1: You can use let statement to

Application Insights API $select not returning all results when values share part of path

社会主义新天地 提交于 2019-12-11 06:35:14
问题 I'm not sure if this is an OData issue or an Application Insights issue, but the App Insights API is not giving me all of the values I selected. It works normally most of the time, but when I ask for two values that share the beginning of their path, it only gives me the second value I asked for. Here's an example of my issue: data: { "count": 1, "type": "customEvent", "customDimensions": { "success": "true", "version": "ver-1" }, "other": { "key": "val-1" } }, { "count": 2, "type":

Solr to Application Insights

孤人 提交于 2019-12-11 06:33:58
问题 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.

How to enable dependency tracking with Application Insights in an Asp.Net Core project

断了今生、忘了曾经 提交于 2019-12-11 06:13:54
问题 We are targeting netcoreapp1.1 and have referenced nuget package Microsoft.ApplicationInsights.AspNetCore with version 2.1.0-beta1 (currently the newest). In program.cs we have .UseApplicationInsights() and in Startup.cs:ConfigureServices we have services.AddApplicationInsightsTelemetry(this.Configuration); . We've tried adding new DependencyTrackingTelemetryModule().Initialize(TelemetryConfiguration.Active); but still don't see any dependency calls, like sql commands, in the Application Map

DI with ILogger in Azure webJob

痴心易碎 提交于 2019-12-11 05:49:45
问题 I have an azure webjob project created in .net framework 4.6. i am trying to implement dependency injection with ILogger and log the information in application insights. class Program { private static IConfigurationRoot configuration; // Please set the following connection strings in app.config for this WebJob to run: // AzureWebJobsDashboard and AzureWebJobsStorage public static void Main() { var config = new JobHostConfiguration(); if (config.IsDevelopment) { config.UseDevelopmentSettings()

Getting User Information in App Insights

蹲街弑〆低调 提交于 2019-12-11 05:28:08
问题 I have a web forms application. I have integrated the App Insights SDK, I receive the notifications about the application like button click (through Custom Events, Track Event function) on my Azure portal. How can I get user information like: What regions/geography the user is logging from, which browser is he/she accessing through... things like that. Right now, In Azure Portal under Usage--> Users I get: No data for 'users' with values of 'Country or region'. Similarly, no data messages are

Monitor Database Calls with Application Insights

末鹿安然 提交于 2019-12-11 04:02:29
问题 So I've been reading through the Application Insights information published by Microsoft, and in particular this article: https://azure.microsoft.com/en-gb/documentation/articles/app-insights-search-diagnostic-logs/ So what I want to ask is, whats the most logical methodology to log database calls? In my head, I want to be able to log into application insights, see the most common database calls being made, and see what their average call times are. That way, I can say "wow the lookup to the