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:
- The total number of error requests per http status code.
- The percentage of overall error requests and percentage of each endpoints error requests.
- An overall error request rate and error request rate per endpoint.
- A overall count of each uncaught exception types
- 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:
- The overall throughput and request duration of all routes
- 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.
- An overall and per endpoint request rate for each client.
- An overall and per endpoint error rate for each client.
- The POST and PUT request sizes for each client.