Breaking

Friday, October 1, 2021

Application Insights Telemetry enricher for Kubernetes

Quick tip if you are hosting your ASP.NET Core application in Kubernetes: have a look at the Microsoft Application Insights for Kubernetes nuget package.

Through this package you can enrich your Application Insights telemetry data with Kubernetes specific information:

After adding the nuget package you can register the enricher by adding the following code:

public void ConfigureServices(IServiceCollection services)
{
services.AddApplicationInsightsTelemetry("----Your Application Insights Instrumentation Key ----");
services.AddApplicationInsightsKubernetesEnricher();
...
}
view raw Startup.cs hosted with ❤ by GitHub

More information: https://github.com/microsoft/ApplicationInsights-Kubernetes

No comments:

Post a Comment