Owin.Metrics by Allan Hardy

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

 OwinRequestMetricsConfig

public OwinRequestMetricsConfig(Action<object> middlewareRegistration, MetricsContext metricsContext, Regex[] ignoreRequestPathPatterns)

public OwinRequestMetricsConfig WithActiveRequestCounter(string metricName = "Active Requests")

Registers a Counter metric named "Owin.ActiveRequests" that shows the current number of active requests

Configure global OWIN Metrics. Available global metrics are: Request Timer, Active Requests Counter, Error Meter

public OwinRequestMetricsConfig WithErrorsMeter(string metricName = "Errors")

Registers a Meter metric named "Owin.Errors" that records the rate at which unhanded errors occurred while processing Nancy requests.

public OwinRequestMetricsConfig WithHttpStatusCodeMeter(string metricName = "HttpStatusCodes")

Registers a Meter metric named "Owin.HttpStatusCodes" that records the rate at which given HTTP stats codes are returned.

public OwinRequestMetricsConfig WithPostAndPutRequestSizeHistogram(string metricName = "Post & Put Request Size")

Register a Histogram metric named "Owin.PostAndPutRequestsSize" on the size of the POST and PUT requests

public OwinRequestMetricsConfig WithRequestTimer(string metricName = "Requests")

Registers a Timer metric named "Owin.Requests" that records how many requests per second are handled and also keeps a histogram of the request duration.

Registers a timer for each request. Timer is created based on route and will be named: Owin.{HTTP_METHOD_NAME} [{ROUTE_PATH}]