microsoft / ApplicationInsights-dotnet-server

Microsoft Application Insights for .NET Web Applications
https://azure.microsoft.com/services/application-insights/
133 stars 67 forks source link

Support EventCounter Collection #1222

Closed cijothomas closed 5 years ago

cijothomas commented 5 years ago

Starting with .NET Core 3.0 there will a bunch of system-wide counters published using EventCounters. ApplicationInsights SDK need to support collecting of event counters as its replacing PerformanceCounters.

We will support EvenCounter collection NETSTANDARD20 onwards, but nobody is publishing any counters by default, until .net core 3.0. So this will only help collect which user is publishing. Starting with .NET Core 3.0, AspNetCore SDK enables a set of built-in counters.

This module should allow collecting EventCounter from any source/counternames. A pre-defined set of counters will be auto-collected if using Asp.Net Core SDK.

Read more: Initial List of available counters: https://github.com/dotnet/diagnostics/blob/master/src/Tools/dotnet-counters/KnownData.cs

EventCounter Tutorial: https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.Tracing/documentation/EventCounterTutorial.md

Part of this: https://github.com/microsoft/ApplicationInsights-dotnet-server/issues/1188

cijothomas commented 5 years ago

Originally posted: https://github.com/microsoft/ApplicationInsights-aspnetcore/issues/601

alejagapatrick commented 5 years ago

https://github.com/microsoft/ApplicationInsights-dotnet-server/issues/1222