App Metrics is an open-source and cross-platform .NET library used to record metrics within an application. App Metrics can run on .NET Core or on the full .NET framework also supporting .NET 4.5.2. App Metrics abstracts away the underlaying repository of your Metrics for example InfluxDB, Graphite, Elasticsearch etc, by sampling and aggregating in memory and providing extensibility points to flush metrics to a repository at a specified interval. For pre .NET Core web applications see AppMetrics.Owin
App Metrics provides various metric types to measure things such as the rate of requests, counting the number of user logins over time, measure the time taken to execute a database query, measure the amount of free memory and so on. Metrics types supported are Gauges, Counters, Meters, Histograms and Timers and Application Performance Indexes Apdex.
App Metrics also provides a health checking system allowing you to monitor the health of your application through user defined checks.
Built using the following open source projects
Ported from Metrics.NET
App Metrics is based on the Metrics.NET library and using the same reservoir sampling code from the original library, which is a port of the Java Metrics library.
App Metrics includes additional features to Metrics.NET, see the docs for details.
Why another .NET port? The main reason for porting Metrics.NET was to have it run on .NET Standard and provider a more modern API into the libraries features. Intially I refactored Metrics.NET stripping out features which required a fairly large refactor such as visualization, however the maintainers did not see .NET Standard or Core a priority at the time.
This library will always keep the same license as the original Metrics.NET Library (as long as its an open source, permisive license).
The original metrics project is released under these terms
"Metrics.NET is release under Apache 2.0 License Copyright (c) 2014 Iulian Margarintescu"
This library is release under Apache 2.0 License ( see LICENSE ) Copyright (c) 2016 Allan Hardy