Performance Metrics
Add Performance Metrics to your application
Install-Package Toggly.Metrics.SystemMetricsservices.AddPerformanceMetrics(new Dictionary<string, Dictionary<string, string>>
{
{ "System.Runtime", new Dictionary<string, string>
{
{"time-in-gc", "TimeInGC"},
{"alloc-rate", "AllocationRate"},
{"cpu-usage", "CpuUsage"},
{"exception-count", "ExceptionCount"},
{"gc-heap-size", "GCHeapSize"},
{"working-set", "MemoryWorkingSet"},
}
},
{ "Microsoft.AspNetCore.Hosting", new Dictionary<string, string>
{
{ "requests-per-second", "RequestsPerSecond" },
}
}
});Last updated