App.Metrics alternatives and similar packages
Based on the "Code Analysis and Metrics" category.
Alternatively, view App.Metrics alternatives based on common mentions on social networks and blogs.
-
CodeMaid
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding. -
.NET Compiler Platform ("Roslyn") Analyzers
A number of Roslyn diagnostic analyzers initially developed to help flesh out the design and implementation of the static analysis APIs. -
Metrics-Net
The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application. -
NsDepCop
NsDepCop is a static code analysis tool that enforces namespace and assembly dependency rules in C# projects. -
Gendarme
Gendarme is a extensible rule-based tool to find problems in .NET applications and libraries. Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked. -
NDepend
is a Visual Studio and VS Team Services extension that estimates your .NET code quality and Technical-Debt, that lets create code rules with C# LINQ syntax, visualize code structure and focus on changes and evolution.[$] -
PVS-Studio
PVS-Studio is a static analyzer on guard of code quality, security (SAST), and code safety. [Free for OSS] [$]
InfluxDB high-performance time series database

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of App.Metrics or a related project?
README
App Metrics
What is App Metrics?
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. App Metrics abstracts away the underlaying repository of your Metrics for example InfluxDB, Graphite, Prometheus etc, by sampling and aggregating in memory and providing extensibility points to flush metrics to a repository at a specified interval.
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
includes an Exponentially Forward Decaying, Sliding Window and Algorithm R reservoir implementations. For more details on reservoir sampling see the docs.
Documentation
Latest Builds, Packages & Repo Stats
Branch | Azure Devops |
---|---|
dev | |
main |
Visualization
Dashboards can be imported from Grafana
Grafana Web Monitoring
Grafana OAuth2 Client Web Monitoring
How to build
Azure Devops builds are triggered on commits and PRs to the dev
branch
- Install the latest .NET Core 2.x SDK
- Run
build.ps1
orbuild.sh
in the root of the repository
How to run benchmarks
App.Metrics includes benchmarking using BenchmarkDotNet.
Two benchmark projects exist targeting App.Metrics.Core and App.Metrics.Concurrency
cd .\src\Core\benchmarks\App.Metrics.Benchmarks.Runner
dotnet run -c "Release" --framework netcoreapp3.1
cd .\src\Concurrency\benchmarks\App.Metrics.Concurrency.Benchmarks.Runner
dotnet run -c "Release" --framework netcoreapp3.1
You'll then be prompted to choose a benchmark to run which will output a markdown file with the result in directory.
You can find the benchmark results here and here.
Contributing
See the [contribution guidlines](.github/CONTRIBUTING.md) for details.
Acknowledgements
Thanks for providing free open source licensing
License
This library is release under Apache 2.0 License ( see LICENSE ) Copyright (c) 2016 Allan Hardy
See LICENSE
App Metrics is based on the Metrics.NET library, and at the moment uses the same reservoir sampling code from the original library which is a port of the Java Dropwizard Metrics library.
Metrics.NET Licensed under these terms: "Metrics.NET is release under Apache 2.0 License Copyright (c) 2014 Iulian Margarintescu" see LICENSE
Dropwizard Metrics Licensed under these terms*: "Copyright (c) 2010-2013 Coda Hale, Yammer.com Published under Apache Software License 2.0, see LICENSE"
*Note that all licence references and agreements mentioned in the App.Metrics README section above
are relevant to that project's source code only.