seif / AppMetrics.DotNetRuntime

Exposes .NET core runtime metrics (GC, JIT, lock contention, thread pool) using the prometheus-net package
MIT License
0 stars 7 forks source link

Loaded Assemblies count metrics #7

Open MaxShoshin opened 4 years ago

MaxShoshin commented 4 years ago

It will be nice to have current count of loaded assemblies count metric.

According: https://docs.microsoft.com/en-us/dotnet/framework/performance/loader-etw-events

We need to listen following events: LoaderKeyword Events: AssemblyLoad_V1, AssemblyUnload_V1

seif commented 4 years ago

Thanks, have you looked into using the new counters API instead? Using the collectors in these libraries affected performance, do that forced is to not use GC and thread pool collectors here and instead use the new counters via https://github.com/neyromant/Neyro.AppMetrics.Extensions

The counters already contain things like exception counts and assembly count.

You might want to look into using that. I have no objection to the functionality existing here, but I won't get to implementing it any time soon.