appmetrics - App.Metrics.AppNetCore 4.5.1-preview.0.1

App Metrics is an open-source .NET Standard library used to record application metrics.

PM> Install-Package App.Metrics.AppNetCore -Version 4.5.1-preview.0.1 -Source https://www.myget.org/F/appmetrics/api/v3/index.json

Copy to clipboard

> nuget.exe install App.Metrics.AppNetCore -Version 4.5.1-preview.0.1 -Source https://www.myget.org/F/appmetrics/api/v3/index.json

Copy to clipboard

> dotnet add package App.Metrics.AppNetCore --version 4.5.1-preview.0.1 --source https://www.myget.org/F/appmetrics/api/v3/index.json

Copy to clipboard
<PackageReference Include="App.Metrics.AppNetCore" Version="4.5.1-preview.0.1" />
Copy to clipboard
source https://www.myget.org/F/appmetrics/api/v3/index.json

nuget App.Metrics.AppNetCore  ~> 4.5.1-preview.0.1
Copy to clipboard

> choco install App.Metrics.AppNetCore --version 4.5.1-preview.0.1 --source https://www.myget.org/F/appmetrics/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "appmetrics" -SourceLocation "https://www.myget.org/F/appmetrics/api/v2"
Install-Module -Name "App.Metrics.AppNetCore" -RequiredVersion "4.5.1-preview.0.1" -Repository "appmetrics" -AllowPreRelease
Copy to clipboard

App Metrics App Metrics

License Donate

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.

Documentation

https://github.com/AppMetrics/Docs.V2.Hugo/tree/main

Latest Builds, Packages & Repo Stats

|Branch|Azure Devops| |------|:--------:| |dev|Azure Devops |main|AppVeyor

Visualization

Dashboards can be imported from Grafana

Grafana Web Monitoring

Grafana/InfluxDB Generic Web Dashboard Demo

Grafana OAuth2 Client Web Monitoring

Grafana/InfluxDB Generic OAuth2 Web Dashboard Demo

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 or build.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 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"

  • .NETCoreApp 3.1
    • App.Metrics (>= 4.3.0)
    • App.Metrics.Extensions.Collectors (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.Configuration (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.DependencyInjection (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.HealthChecks (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.Hosting (>= 4.5.1-preview.0.1)
  • .NETStandard 2.0
    • App.Metrics (>= 4.3.0)
    • App.Metrics.Extensions.Collectors (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.Configuration (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.DependencyInjection (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.HealthChecks (>= 4.5.1-preview.0.1)
    • App.Metrics.Extensions.Hosting (>= 4.5.1-preview.0.1)
    • Microsoft.Extensions.Hosting.Abstractions (>= 3.1.0)
  • .NETCoreApp 3.1: 3.1.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Allan Hardy

Authors

Allan Hardy and Contributors

Project URL

https://github.com/AppMetrics/AppMetrics

License

Apache-2.0

Tags

appmetrics metrics

Info

19490 total downloads
171 downloads for version 4.5.1-preview.0.1
Download (19.35 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
4.5.1-preview.0.1 19.35 KB Wed, 23 Jul 2025 12:01:40 GMT 171
4.4.0-preview.0.11 19.37 KB Wed, 23 Jul 2025 10:59:27 GMT 127
4.4.0-preview.0.10 19.35 KB Thu, 23 Nov 2023 00:10:02 GMT 160
4.4.0-preview.0.9 19.35 KB Thu, 12 Oct 2023 02:04:18 GMT 169
4.4.0-preview.0.8 19.35 KB Thu, 12 Oct 2023 01:27:55 GMT 149
4.4.0-preview.0.6 19.36 KB Thu, 12 Oct 2023 01:02:46 GMT 147
4.4.0-preview.0.5 19.34 KB Wed, 22 Jun 2022 22:08:58 GMT 163
4.4.0-preview.0.4 19.36 KB Fri, 26 Nov 2021 11:41:20 GMT 143
4.3.1-preview.0.3 19.36 KB Wed, 23 Jul 2025 11:46:37 GMT 158
4.3.1-preview.0.1 19.36 KB Fri, 26 Nov 2021 11:08:16 GMT 143
4.3.0 19.29 KB Fri, 26 Nov 2021 10:49:43 GMT 159
4.3.0-preview.0.34 19.37 KB Fri, 26 Nov 2021 10:32:15 GMT 155
4.3.0-preview.0.33 19.36 KB Wed, 13 Oct 2021 02:09:54 GMT 151
4.3.0-preview.0.32 19.36 KB Wed, 13 Oct 2021 02:00:06 GMT 148
4.3.0-preview.0.31 19.34 KB Wed, 13 Oct 2021 01:47:13 GMT 162
4.3.0-preview.0.30 19.36 KB Wed, 26 May 2021 08:10:45 GMT 167
4.3.0-preview.0.29 19.37 KB Wed, 26 May 2021 07:59:20 GMT 154
4.3.0-preview.0.28 19.36 KB Wed, 26 May 2021 07:49:35 GMT 163
4.3.0-preview.0.25 19.37 KB Wed, 26 May 2021 07:18:56 GMT 164
4.3.0-preview.0.1 19.36 KB Fri, 26 Nov 2021 10:41:14 GMT 129
4.2.0 19.29 KB Thu, 15 Apr 2021 12:45:21 GMT 159
4.2.0-preview.0.35 19.36 KB Tue, 13 Apr 2021 08:58:26 GMT 140
4.2.0-preview.0.34 19.33 KB Tue, 30 Mar 2021 20:04:48 GMT 159
4.2.0-preview.0.33 19.36 KB Fri, 26 Mar 2021 21:12:55 GMT 147
4.2.0-preview.0.32 19.36 KB Thu, 18 Mar 2021 01:09:59 GMT 121
4.2.0-preview.0.31 19.35 KB Thu, 18 Mar 2021 01:12:58 GMT 148
4.2.0-preview.0.30 19.35 KB Wed, 17 Mar 2021 23:54:31 GMT 145
4.2.0-preview.0.29 19.35 KB Wed, 17 Mar 2021 23:47:47 GMT 164
4.2.0-preview.0.28 19.35 KB Wed, 17 Mar 2021 23:46:52 GMT 156
4.2.0-preview.0.27 19.34 KB Fri, 22 Jan 2021 08:26:32 GMT 157
4.2.0-preview.0.26 19.35 KB Tue, 12 Jan 2021 22:13:07 GMT 145
4.2.0-preview.0.25 19.36 KB Sat, 12 Dec 2020 07:04:21 GMT 145
4.2.0-preview.0.24 19.35 KB Fri, 04 Dec 2020 06:16:45 GMT 155
4.2.0-preview.0.23 19.36 KB Thu, 15 Apr 2021 11:45:21 GMT 157
4.2.0-preview.0.22 19.35 KB Wed, 24 Mar 2021 21:53:16 GMT 153
4.2.0-preview.0.21 19.36 KB Fri, 04 Dec 2020 05:51:52 GMT 136
4.2.0-preview.0.20 18.38 KB Wed, 18 Nov 2020 12:04:18 GMT 163
4.2.0-preview.0.19 13.88 KB Thu, 08 Oct 2020 13:49:29 GMT 157
4.2.0-preview.0.18 13.88 KB Fri, 07 Aug 2020 09:37:27 GMT 159
4.2.0-preview.0.17 13.88 KB Fri, 07 Aug 2020 09:27:53 GMT 154
4.2.0-preview.0.16 13.88 KB Fri, 31 Jul 2020 14:04:17 GMT 163
4.2.0-preview.0.15 13.88 KB Fri, 31 Jul 2020 12:11:42 GMT 172
4.2.0-preview.0.14 13.87 KB Fri, 31 Jul 2020 11:30:14 GMT 170
4.2.0-preview.0.13 13.87 KB Fri, 31 Jul 2020 10:25:51 GMT 142
4.2.0-preview.0.12 13.87 KB Fri, 31 Jul 2020 10:24:49 GMT 149
4.2.0-preview.0.11 13.87 KB Thu, 09 Jul 2020 15:18:07 GMT 140
4.2.0-preview.0.10 13.88 KB Thu, 09 Jul 2020 12:43:11 GMT 136
4.2.0-preview.0.9 13.86 KB Fri, 03 Jul 2020 08:28:31 GMT 135
4.2.0-preview.0.8 13.85 KB Wed, 24 Jun 2020 11:16:58 GMT 144
4.2.0-preview.0.7 13.86 KB Mon, 22 Jun 2020 03:08:49 GMT 127
4.2.0-preview.0.6 13.86 KB Fri, 19 Jun 2020 23:44:54 GMT 159
4.2.0-preview.0.5 13.85 KB Fri, 19 Jun 2020 23:42:48 GMT 157
4.2.0-preview.0.4 13.85 KB Fri, 19 Jun 2020 15:47:22 GMT 150
4.2.0-preview.0.3 13.85 KB Fri, 19 Jun 2020 15:34:33 GMT 166
4.1.0 13.8 KB Fri, 19 Jun 2020 13:15:49 GMT 155
4.1.0-preview2.0.6 13.86 KB Fri, 19 Jun 2020 12:26:23 GMT 144
4.1.0-preview2.0.5 13.87 KB Fri, 19 Jun 2020 12:06:53 GMT 124
4.1.0-preview2.0.3 13.86 KB Fri, 19 Jun 2020 11:32:17 GMT 141
4.1.0-preview.0.34 13.86 KB Fri, 19 Jun 2020 09:44:56 GMT 161
4.1.0-preview.0.33 13.86 KB Thu, 18 Jun 2020 13:38:36 GMT 165
4.1.0-preview.0.32 13.86 KB Thu, 18 Jun 2020 12:10:42 GMT 141
4.1.0-preview.0.24 13.86 KB Mon, 15 Jun 2020 10:59:25 GMT 166
4.1.0-preview.0.23 13.86 KB Mon, 15 Jun 2020 09:14:00 GMT 151
4.1.0-preview.0.22 13.85 KB Sun, 14 Jun 2020 08:56:57 GMT 152
4.1.0-preview.0.21 13.86 KB Wed, 10 Jun 2020 22:36:24 GMT 163
4.1.0-preview.0.20 13.87 KB Wed, 10 Jun 2020 04:08:18 GMT 139
4.1.0-preview.0.19 13.86 KB Wed, 10 Jun 2020 03:01:44 GMT 165
4.1.0-preview.0.18 13.85 KB Fri, 29 May 2020 13:08:07 GMT 143
4.1.0-preview.0.17 13.86 KB Thu, 28 May 2020 03:00:28 GMT 158
4.1.0-preview.0.16 13.87 KB Mon, 25 May 2020 01:32:25 GMT 145
4.1.0-preview.0.15 13.87 KB Fri, 22 May 2020 11:54:17 GMT 138
4.1.0-preview.0.14 13.86 KB Fri, 22 May 2020 11:45:45 GMT 142
4.0.0 12.41 KB Fri, 22 May 2020 11:09:45 GMT 133
4.0.0-preview1.0.11 12.46 KB Tue, 12 May 2020 10:20:31 GMT 160
4.0.0-preview1.0.10 12.45 KB Tue, 12 May 2020 10:02:08 GMT 165
4.0.0-preview1.0.9 12.45 KB Tue, 28 Apr 2020 11:33:15 GMT 162
4.0.0-preview1.0.8 12.45 KB Tue, 28 Apr 2020 11:21:16 GMT 157
4.0.0-preview1.0.7 12.45 KB Fri, 03 Apr 2020 22:47:15 GMT 148
4.0.0-preview1.0.6 12.45 KB Fri, 03 Apr 2020 22:01:43 GMT 147
4.0.0-preview1.0.5 12.46 KB Tue, 31 Mar 2020 11:19:32 GMT 149
4.0.0-preview1.0.4 12.45 KB Tue, 31 Mar 2020 09:13:12 GMT 145
4.0.0-preview1.0.3 12.45 KB Sun, 03 Nov 2019 00:43:31 GMT 151
4.0.0-preview.0.2 12.45 KB Thu, 31 Oct 2019 11:40:45 GMT 149
4.0.0-alpha.0.13 13.85 KB Fri, 22 May 2020 11:23:28 GMT 162
4.0.0-alpha.0.12 12.47 KB Fri, 22 May 2020 10:51:03 GMT 147
4.0.0-alpha.0.4 12.46 KB Fri, 22 May 2020 10:58:17 GMT 141
3.3.0-dev0002 6.21 KB Mon, 28 Oct 2019 10:29:18 GMT 160
3.2.0 6.19 KB Fri, 25 Oct 2019 13:17:24 GMT 145
3.2.0-dev0031 6.2 KB Fri, 25 Oct 2019 13:25:02 GMT 156
3.2.0-dev0027 6.2 KB Fri, 25 Oct 2019 12:55:51 GMT 169
3.2.0-dev0026 6.21 KB Fri, 25 Oct 2019 12:20:36 GMT 156
3.2.0-dev0024 6.2 KB Fri, 25 Oct 2019 12:18:50 GMT 145
3.2.0-dev0022 6.2 KB Thu, 01 Aug 2019 10:58:23 GMT 151
3.2.0-dev0019 6.21 KB Sat, 20 Jul 2019 22:49:40 GMT 155
3.2.0-dev0015 6.21 KB Wed, 05 Jun 2019 11:16:38 GMT 161
3.2.0-dev0012 6.2 KB Wed, 29 May 2019 09:20:57 GMT 166
3.2.0-dev0010 6.2 KB Wed, 29 May 2019 09:20:20 GMT 153
3.2.0-dev0008 6.2 KB Mon, 13 May 2019 07:54:50 GMT 148
3.2.0-dev0006 6.21 KB Mon, 13 May 2019 07:53:19 GMT 156
3.2.0-dev0004 6.21 KB Mon, 13 May 2019 07:53:20 GMT 145
3.2.0-dev0002 6.19 KB Fri, 26 Apr 2019 01:55:21 GMT 155
3.1.1 6.2 KB Fri, 25 Oct 2019 12:49:00 GMT 143
3.1.0 6.18 KB Wed, 24 Apr 2019 12:50:30 GMT 150
3.1.0-dev0032 6.2 KB Mon, 22 Apr 2019 09:20:55 GMT 154
3.1.0-dev0031 6.2 KB Mon, 22 Apr 2019 09:18:53 GMT 145
3.1.0-dev0030 6.2 KB Mon, 22 Apr 2019 09:02:45 GMT 172
3.1.0-dev0029 6.2 KB Thu, 28 Mar 2019 11:41:01 GMT 150
3.1.0-dev0028 6.19 KB Thu, 28 Mar 2019 11:15:11 GMT 136
3.1.0-dev0026 6.2 KB Thu, 28 Mar 2019 09:35:12 GMT 176
3.1.0-dev0015 6.19 KB Tue, 26 Mar 2019 12:48:41 GMT 169
3.0.0 6.2 KB Wed, 24 Apr 2019 12:19:50 GMT 165
3.0.0-alpha-0080 6.99 KB Tue, 26 Mar 2019 10:43:05 GMT 152
3.0.0-alpha-0078 6.96 KB Tue, 05 Feb 2019 09:02:37 GMT 167
3.0.0-alpha-0075 6.96 KB Sun, 02 Dec 2018 13:01:09 GMT 164
3.0.0-alpha-0073 6.97 KB Sun, 02 Dec 2018 09:16:36 GMT 158
3.0.0-alpha-0072 6.97 KB Sun, 08 Jul 2018 09:35:20 GMT 149
3.0.0-alpha-0071 6.97 KB Fri, 06 Jul 2018 15:51:52 GMT 155
3.0.0-alpha-0070 6.98 KB Fri, 06 Jul 2018 15:00:19 GMT 147
3.0.0-alpha-0069 6.98 KB Fri, 06 Jul 2018 14:28:09 GMT 153
3.0.0-alpha-0067 6.98 KB Wed, 04 Jul 2018 10:27:31 GMT 149
3.0.0-alpha-0066 6.98 KB Wed, 27 Jun 2018 09:58:08 GMT 123
3.0.0-alpha-0065 6.98 KB Thu, 14 Jun 2018 12:11:15 GMT 152
3.0.0-alpha-0064 6.99 KB Thu, 14 Jun 2018 11:53:14 GMT 144
3.0.0-alpha-0063 6.98 KB Thu, 14 Jun 2018 11:33:28 GMT 152
3.0.0-alpha-0060 6.97 KB Sun, 03 Jun 2018 11:31:47 GMT 168
3.0.0-alpha-0059 6.98 KB Fri, 11 May 2018 12:39:41 GMT 150
2.1.0-alpha-0058 6.99 KB Fri, 13 Apr 2018 15:15:36 GMT 146
2.1.0-alpha-0057 6.94 KB Sat, 31 Mar 2018 12:37:57 GMT 159