Questions tagged [azure-application-insights]

For programming questions about Microsoft's Azure Application Insights, which is a monitoring service for deployed live applications, allowing collection of availability, performance, usage, and other diagnostic data. It supports web services, Windows Store apps, and Windows Phone 8 apps.

Application Insights lets you monitor your deployed live applications. It supports web services, web apps, and device apps, across a variety of languages and device ecosystems. Application Insights allows for collection of data around availability, performance, usage, and diagnostics.

Application Insights is part of Microsoft Azure Monitor, which is Microsoft's offering for monitoring applications and infra, in Azure cloud or On-Prem.

For .NET and .NET Core technologies, Application Insights SDKs are available as nuget packages (available from nuget.org), or by functionality built into Visual Studio 2013 (Update 3 and later).

SDKs for other technologies and languages are available on Microsoft's GitHub page.

3791 questions
1
vote
1 answer

How to add Application Insights to ILogger for Unity DI into WCF Service

I have the unfortunate task of updating a WCF project to .NET Framework 4.8 and replacing the existing log4net exception handling with Microsoft Logging and Application Insights. My approach was to implement Dependency Injection to make…
Jason
  • 2,806
  • 2
  • 28
  • 38
1
vote
1 answer

Track method execution time in worker service with application insight custom metric

I am looking for to track multiple methods(A=>B=>C) execution time with application insight custom metric. From the Doc I can get the execution stats for the main worker process, but is there any way I can also get the execution time of dependency…
1
vote
2 answers

Cannot create scheduled-query via az cli - how does the condition parse?

I'm trying to set a log query alert through the az cli but I cannot for the life of me get the --condition option to accept a query with a quote in it. E.g.: az monitor scheduled-query create -n "Log Alert" -g rg --scopes…
mattb
  • 384
  • 1
  • 4
  • 24
1
vote
1 answer

Kusto join rows using an id and display the contents as an array

Is there a way to join multiple rows by a distinct id and show those rows as an array or a comma separated string? e.g. | id | value | | 1 | A | | 1 | B | | 1 | C | into | id | values | | 1 | A,B,C |
dardardardar
  • 314
  • 1
  • 12
1
vote
1 answer

No data for my application insights live metrics with .NET Core 3.1

I'm trying to setup Application Insights on my ASP.NET Core 3.1 web application but without success... I installed the version 2.16 of "Microsoft.ApplicationInsights.AspNetCore", then add the following line in the startup.cs…
ssougnez
  • 5,315
  • 11
  • 46
  • 79
1
vote
1 answer

Azure BlobStorage via CDN dependency fails with 1.0 s duration

We use an Azure BlobStorage account prod-example (Performance/Access tier: Standard/Hot), and via it's Azure CDN prod-cdn-example-blob endpoint (General web delivery) images are served to an App Service. Occasionally, in Application Insights of the…
1
vote
1 answer

How to retreive custom property corresponding to another property in azure

I am trying to write a kusto query to retrieve a custom property as below. I want to retrieve count of pkgName and corresponding organization. I could retrieve the count of pkgName and the code is attached below. let mainTable = union customEvents …
Parkavi
  • 157
  • 1
  • 4
  • 17
1
vote
1 answer

How to get number of pods in AKS that were active in a given timeframe

So, I'm having an unexpectedly hard time figuring this out. I have a kubernetes cluster deployed in AKS. In Azure (or Kubernetes dashboard), How do I view how many active pods there were in a given time frame?
chuckw87
  • 647
  • 1
  • 6
  • 14
1
vote
1 answer

Preventing specific exceptions from being logged to App Insights

This is a long shot and there doesnt seem to be anything close on Google, but I was wondering if it possible to prevent certain exceptions from being logged to App Insights? There are a lot of places in our code base where exceptions were raised for…
Paul
  • 2,773
  • 7
  • 41
  • 96
1
vote
4 answers

Web API doesn't register Information log in Application Insights and ASP .Net Core

I am trying to log request and response in a Middleware using ASP .Net Core and Application Insights, but Application Insights doesn't log information. My code: RequestResponseLoggingMiddleware.cs public class RequestResponseLoggingMiddleware { …
Omar Murcia
  • 547
  • 2
  • 11
  • 26
1
vote
2 answers

Application insights and custom properties of Exception

I have the following exception: public class InvalidStatusCodeException : Exception { public HttpStatusCode ReceivedStatusCode { get; set; } public string ApiUrl { get; set; } public InvalidStatusCodeException(HttpStatusCode…
Oleg Sh
  • 8,496
  • 17
  • 89
  • 159
1
vote
1 answer

How to log with application insights in a .NET library class?

I have a C# .NET (4.6.1) Class Library that is being consumed by an Azure function app (V3). I am trying to get that Class Library to use the function app's App Insights for logging, but I'm completely lost on how to even start with setting it up…
1
vote
1 answer

Application Insights TrackEvent never persisted in Azure

I am trying to implement the SDK for Node to track custom events in our code base. The service I've written is called from an asynchronous method chain and runs in Azure Functions: public async handleEvent(event: Event) { // Do stuff //…
jokarl
  • 1,913
  • 2
  • 24
  • 52
1
vote
1 answer

Trace, Debug and Information messages not reaching App Insights from WorkerService

I've spent the entire last day trying to find something to explain why I'm not seeing any Trace, Debug or Information messages in app insights when I run my WorkerService in Azure. The WorkerService is being hosted in a Linux (Ubuntu 18.4) VM in…
Mike
  • 2,120
  • 1
  • 23
  • 40
1
vote
1 answer

Availability Test in Application Insights atuomatically disables

We have a very simple Application Insights Availability Test (That hits an HTTPS URL across 4 US regions) (basically it hits our App Service). What we have observed it this Availability test automatically stops (not a fixed scheduled) but it…
user42012
  • 722
  • 12
  • 33