App Metrics 1.0 Fork me on GitHub
Show / Hide Table of Contents

Web Application Monitoring via ASP.NET Core Middleware

App Metrics includes a set of middleware components to automatically track typical metrics used in monitoring a web application. The metrics recorded by thse middleware components are registered under the Application.HttpRequests Metric Context by default.

The following are the default metrics recorded:

Apdex

Monitors the Application Performance Index of the web application which allows us to monitor end-user satisfication.

Errors

The error middleware records the following error metrics:

  1. The total number of error requests per http status code.
  2. The percentage of overall error requests and percentage of each endpoints error requests.
  3. An overall error request rate and error request rate per endpoint.
  4. A overall count of each uncaught exception types
  5. A overall count of each uncaught exception types per endpoint
Tip

There are several types of Gauges provided by App Metrics, a Hit Percentage Gauge is used for example to calculate the request error rate percentage by calculating the percentage of failed requests using the one minute rate of error requests and the one minute rate of overall web requests.

Throughput & Response Times

To measure the throughput and response times within a web application, Timers are registered to record:

  1. The overall throughput and request duration of all routes
  2. The throughput and request duration per route within the web application

POST and PUT request sizes

Histograms are used to track POST and PUT requests sizes of incomming HTTP requests.

OAuth2

If your web application is secured with OAuth2, by default App.Metrics will record metrics on a per client basis. This provides some useful insights into clients of your APIs.

  1. An overall and per endpoint request rate for each client.
  2. An overall and per endpoint error rate for each client.
  3. The POST and PUT request sizes for each client.

Related Docs

  • How to configure a Web Host
  • How to configure reporting in a Web Host
  • Metric Types
  • Edit this Doc
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX