/AspNetPerformanceMetrics

基于Metrics.Net的性能监控包

Primary LanguageC#

#如何使用

配置:

Metric.Config.WithHttpEndpoint("http://localhost:1234/").WithAllCounters().WithInternalMetrics();
config.Filters.Add(new WebApiPerformanceAttribute());

在 Global.cs中配置

protected void Application_End()
{
  PerformanceMetricFactory.CleanupPerformanceMetrics();
}