Azure Monitoring Docs

Application Insights

Application Insights is a powerful extensible Application Performance Management (APM) service for developers and DevOps professionals. It provides deep insights into your applications, enabling you to monitor availability, performance, and usage patterns in real time.

Key Features

Getting Started

  1. Create an Application Insights resource in the Azure portal.
  2. Install the SDK for your platform (C#, Java, JavaScript, Python, etc.).
  3. Configure instrumentation key or use Azure Managed Identity for seamless connection.
  4. Deploy your application and start seeing telemetry within minutes.

Sample: Adding Application Insights to an ASP.NET Core App


// Program.cs
using Microsoft.ApplicationInsights.Extensibility;

var builder = WebApplication.CreateBuilder(args);

// Add Application Insights
builder.Services.AddApplicationInsightsTelemetry();

var app = builder.Build();

app.MapGet("/", () => "Hello World!");

app.Run();

Sample: Sending Custom Events from JavaScript


// index.html (client side)


Powerful Queries with Kusto


requests
| where timestamp > ago(24h)
| summarize count() by resultCode, bin(timestamp, 1h)
| order by timestamp desc

Resources