Owin.Metrics by Allan Hardy

<PackageReference Include="Owin.Metrics" Version="0.5.5" />

 OwinMetricsConfig

public class OwinMetricsConfig
public static readonly OwinMetricsConfig Disabled

public OwinMetricsConfig(Action<object> middlewareRegistration, MetricsContext context, Func<HealthStatus> healthStatus)

Expose Owin metrics endpoint

public OwinMetricsConfig WithMetricsEndpoint(Action<MetricsEndpointReports> config, string endpointPrefix = "metrics")

Configure Owin metrics endpoint.

public OwinMetricsConfig WithRequestMetricsConfig(Regex[] ignoreRequestPathPatterns = null, string owinContext = "Owin")

Register all predefined metrics.

public OwinMetricsConfig WithRequestMetricsConfig(Action<OwinRequestMetricsConfig> config, Regex[] ignoreRequestPathPatterns = null, string owinContext = "Owin")

Configure which Owin metrics to be registered.