App Metrics includes a hosted service which collects system usage metrics. Metrics include:
For console applications:
nuget install App.Metrics.App.All
For ASP.NET applications:
nuget install App.Metrics.AspNetCore.All
Use the IServiceCollection
extension method to add the hosted service e.g.
public void ConfigureServices(IServiceCollection services)
{
services.AddAppMetricsSystemMetricsCollector();
}
App Metrics includes a hosted service which collects GC metrics. Metrics include:
For console applications:
nuget install App.Metrics.App.All
For ASP.NET applications:
nuget install App.Metrics.AspNetCore.All
Use the IServiceCollection
extension method to add the hosted service e.g.
public void ConfigureServices(IServiceCollection services)
{
services.AddAppMetricsGcEventsMetricsCollector();
}
public void ConfigureServices(IServiceCollection services)
{
services.AddAppMetricsCollectors();
}
An InfluxDB Grafana dashboard exists for an example on visualisation of captured metrics;