appmetrics - App.Metrics.Extensions.Hosting 4.5.1-preview.0.1

Microsoft.Extensions.Hosting (IHostBuilder) support for App Metrics.

PM> Install-Package App.Metrics.Extensions.Hosting -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.Extensions.Hosting -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.Extensions.Hosting --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.Extensions.Hosting" Version="4.5.1-preview.0.1" />
Copy to clipboard
source https://www.myget.org/F/appmetrics/api/v3/index.json

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

> choco install App.Metrics.Extensions.Hosting --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.Extensions.Hosting" -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.Core (>= 4.3.0)
  • .NETStandard 2.0
    • App.Metrics.Core (>= 4.3.0)
    • 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 hosting

Info

19884 total downloads
150 downloads for version 4.5.1-preview.0.1
Download (25.9 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
4.5.1-preview.0.1 25.9 KB Wed, 23 Jul 2025 12:02:33 GMT 150
4.4.0-preview.0.11 25.94 KB Wed, 23 Jul 2025 11:00:19 GMT 142
4.4.0-preview.0.10 25.92 KB Thu, 23 Nov 2023 00:10:53 GMT 146
4.4.0-preview.0.9 25.92 KB Thu, 12 Oct 2023 02:05:08 GMT 125
4.4.0-preview.0.8 25.9 KB Thu, 12 Oct 2023 01:28:43 GMT 140
4.4.0-preview.0.6 25.91 KB Thu, 12 Oct 2023 01:03:37 GMT 155
4.4.0-preview.0.5 25.91 KB Wed, 22 Jun 2022 22:10:03 GMT 159
4.4.0-preview.0.4 25.93 KB Fri, 26 Nov 2021 11:42:32 GMT 153
4.3.1-preview.0.3 25.91 KB Wed, 23 Jul 2025 11:47:39 GMT 141
4.3.1-preview.0.1 25.91 KB Fri, 26 Nov 2021 11:09:20 GMT 156
4.3.0 25.83 KB Fri, 26 Nov 2021 10:50:47 GMT 142
4.3.0-preview.0.34 25.92 KB Fri, 26 Nov 2021 10:33:20 GMT 150
4.3.0-preview.0.33 25.92 KB Wed, 13 Oct 2021 02:10:48 GMT 157
4.3.0-preview.0.32 25.92 KB Wed, 13 Oct 2021 02:01:04 GMT 149
4.3.0-preview.0.31 25.91 KB Wed, 13 Oct 2021 01:48:08 GMT 153
4.3.0-preview.0.30 25.91 KB Wed, 26 May 2021 08:11:50 GMT 117
4.3.0-preview.0.29 25.92 KB Wed, 26 May 2021 08:00:15 GMT 140
4.3.0-preview.0.28 25.91 KB Wed, 26 May 2021 07:50:37 GMT 130
4.3.0-preview.0.25 25.92 KB Wed, 26 May 2021 07:19:55 GMT 146
4.3.0-preview.0.1 25.9 KB Fri, 26 Nov 2021 10:42:14 GMT 149
4.2.0 25.85 KB Thu, 15 Apr 2021 12:46:16 GMT 156
4.2.0-preview.0.35 25.92 KB Tue, 13 Apr 2021 08:59:21 GMT 115
4.2.0-preview.0.34 26.08 KB Tue, 30 Mar 2021 20:05:48 GMT 141
4.2.0-preview.0.33 26.1 KB Fri, 26 Mar 2021 21:13:51 GMT 135
4.2.0-preview.0.32 26.11 KB Thu, 18 Mar 2021 01:10:54 GMT 139
4.2.0-preview.0.31 26.09 KB Thu, 18 Mar 2021 01:13:56 GMT 138
4.2.0-preview.0.30 26.1 KB Wed, 17 Mar 2021 23:55:26 GMT 164
4.2.0-preview.0.29 26.09 KB Wed, 17 Mar 2021 23:48:37 GMT 142
4.2.0-preview.0.28 26.11 KB Wed, 17 Mar 2021 23:47:43 GMT 151
4.2.0-preview.0.27 26.11 KB Fri, 22 Jan 2021 08:27:25 GMT 148
4.2.0-preview.0.26 26.11 KB Tue, 12 Jan 2021 22:13:57 GMT 130
4.2.0-preview.0.25 26.1 KB Sat, 12 Dec 2020 07:05:25 GMT 154
4.2.0-preview.0.24 26.09 KB Fri, 04 Dec 2020 06:17:36 GMT 156
4.2.0-preview.0.23 25.93 KB Thu, 15 Apr 2021 11:46:16 GMT 156
4.2.0-preview.0.22 26.1 KB Wed, 24 Mar 2021 21:54:14 GMT 153
4.2.0-preview.0.21 26.11 KB Fri, 04 Dec 2020 05:52:47 GMT 141
4.2.0-preview.0.20 21.32 KB Wed, 18 Nov 2020 12:05:14 GMT 135
4.2.0-preview.0.19 17.2 KB Thu, 08 Oct 2020 13:50:27 GMT 153
4.2.0-preview.0.18 17.2 KB Fri, 07 Aug 2020 09:38:15 GMT 155
4.2.0-preview.0.17 17.21 KB Fri, 07 Aug 2020 09:28:47 GMT 144
4.2.0-preview.0.16 17.2 KB Fri, 31 Jul 2020 14:05:09 GMT 145
4.2.0-preview.0.15 17.21 KB Fri, 31 Jul 2020 12:12:34 GMT 144
4.2.0-preview.0.14 17.2 KB Fri, 31 Jul 2020 11:31:04 GMT 133
4.2.0-preview.0.13 17.19 KB Fri, 31 Jul 2020 10:26:39 GMT 117
4.2.0-preview.0.12 17.21 KB Fri, 31 Jul 2020 10:25:39 GMT 121
4.2.0-preview.0.11 17.19 KB Thu, 09 Jul 2020 15:18:54 GMT 123
4.2.0-preview.0.10 17.2 KB Thu, 09 Jul 2020 12:44:02 GMT 130
4.2.0-preview.0.9 17.2 KB Fri, 03 Jul 2020 08:29:21 GMT 141
4.2.0-preview.0.8 17.19 KB Wed, 24 Jun 2020 11:17:47 GMT 109
4.2.0-preview.0.7 17.2 KB Mon, 22 Jun 2020 03:09:33 GMT 138
4.2.0-preview.0.6 17.2 KB Fri, 19 Jun 2020 23:45:40 GMT 151
4.2.0-preview.0.5 17.2 KB Fri, 19 Jun 2020 23:43:33 GMT 136
4.2.0-preview.0.4 17.19 KB Fri, 19 Jun 2020 15:48:05 GMT 148
4.2.0-preview.0.3 17.2 KB Fri, 19 Jun 2020 15:35:16 GMT 127
4.1.0 17.14 KB Fri, 19 Jun 2020 13:16:30 GMT 212
4.1.0-preview2.0.6 17.19 KB Fri, 19 Jun 2020 12:27:05 GMT 141
4.1.0-preview2.0.5 17.21 KB Fri, 19 Jun 2020 12:07:35 GMT 150
4.1.0-preview2.0.3 17.2 KB Fri, 19 Jun 2020 11:32:58 GMT 152
4.1.0-preview.0.34 17.2 KB Fri, 19 Jun 2020 09:45:38 GMT 147
4.1.0-preview.0.33 17.2 KB Thu, 18 Jun 2020 13:39:18 GMT 128
4.1.0-preview.0.32 17.2 KB Thu, 18 Jun 2020 12:11:27 GMT 135
4.1.0-preview.0.24 17.2 KB Mon, 15 Jun 2020 11:00:06 GMT 150
4.1.0-preview.0.23 17.2 KB Mon, 15 Jun 2020 09:14:41 GMT 142
4.1.0-preview.0.22 17.21 KB Sun, 14 Jun 2020 08:57:35 GMT 151
4.1.0-preview.0.21 17.19 KB Wed, 10 Jun 2020 22:37:04 GMT 155
4.1.0-preview.0.20 17.21 KB Wed, 10 Jun 2020 04:09:00 GMT 143
4.1.0-preview.0.19 17.21 KB Wed, 10 Jun 2020 03:02:28 GMT 151
4.1.0-preview.0.18 17.2 KB Fri, 29 May 2020 13:08:47 GMT 146
4.1.0-preview.0.17 17.2 KB Thu, 28 May 2020 03:01:07 GMT 148
4.1.0-preview.0.16 17.21 KB Mon, 25 May 2020 01:33:05 GMT 129
4.1.0-preview.0.15 17.21 KB Fri, 22 May 2020 11:54:55 GMT 147
4.1.0-preview.0.14 17.2 KB Fri, 22 May 2020 11:46:27 GMT 153
4.0.0 15.23 KB Fri, 22 May 2020 11:10:25 GMT 197
4.0.0-preview1.0.11 15.29 KB Tue, 12 May 2020 10:21:12 GMT 157
4.0.0-preview1.0.10 15.28 KB Tue, 12 May 2020 10:02:49 GMT 147
4.0.0-preview1.0.9 15.28 KB Tue, 28 Apr 2020 11:33:54 GMT 147
4.0.0-preview1.0.8 15.28 KB Tue, 28 Apr 2020 11:21:56 GMT 139
4.0.0-preview1.0.7 15.29 KB Fri, 03 Apr 2020 22:47:55 GMT 141
4.0.0-preview1.0.6 15.28 KB Fri, 03 Apr 2020 22:02:22 GMT 145
4.0.0-preview1.0.5 15.28 KB Tue, 31 Mar 2020 11:20:11 GMT 162
4.0.0-preview1.0.4 15.28 KB Tue, 31 Mar 2020 09:13:53 GMT 135
4.0.0-preview1.0.3 15.27 KB Sun, 03 Nov 2019 00:44:13 GMT 253
4.0.0-preview.0.2 15.27 KB Thu, 31 Oct 2019 11:41:27 GMT 114
4.0.0-alpha.0.13 17.18 KB Fri, 22 May 2020 11:24:06 GMT 123
4.0.0-alpha.0.12 15.28 KB Fri, 22 May 2020 10:52:00 GMT 148
4.0.0-alpha.0.4 15.28 KB Fri, 22 May 2020 10:58:55 GMT 139
3.3.0-dev0002 9.02 KB Mon, 28 Oct 2019 10:30:14 GMT 150
3.2.0 9 KB Fri, 25 Oct 2019 13:18:23 GMT 147
3.2.0-dev0031 9.02 KB Fri, 25 Oct 2019 13:25:58 GMT 144
3.2.0-dev0027 9.01 KB Fri, 25 Oct 2019 12:56:48 GMT 135
3.2.0-dev0026 9.01 KB Fri, 25 Oct 2019 12:21:34 GMT 140
3.2.0-dev0024 9.01 KB Fri, 25 Oct 2019 12:19:45 GMT 149
3.2.0-dev0022 9.01 KB Thu, 01 Aug 2019 10:59:15 GMT 154
3.2.0-dev0019 9.02 KB Sat, 20 Jul 2019 22:50:31 GMT 136
3.2.0-dev0015 9.02 KB Wed, 05 Jun 2019 11:17:32 GMT 132
3.2.0-dev0012 9.01 KB Wed, 29 May 2019 09:21:54 GMT 135
3.2.0-dev0010 9.01 KB Wed, 29 May 2019 09:21:14 GMT 133
3.2.0-dev0008 9.02 KB Mon, 13 May 2019 07:55:42 GMT 123
3.2.0-dev0006 9.02 KB Mon, 13 May 2019 07:54:15 GMT 149
3.2.0-dev0004 9.02 KB Mon, 13 May 2019 07:54:13 GMT 150
3.2.0-dev0002 9 KB Fri, 26 Apr 2019 01:56:11 GMT 137
3.1.1 9.01 KB Fri, 25 Oct 2019 12:49:55 GMT 134
3.1.0 9 KB Wed, 24 Apr 2019 12:51:24 GMT 1265
3.1.0-dev0032 9.02 KB Mon, 22 Apr 2019 09:21:46 GMT 134
3.1.0-dev0031 9.02 KB Mon, 22 Apr 2019 09:19:44 GMT 144
3.1.0-dev0030 9.02 KB Mon, 22 Apr 2019 09:03:37 GMT 140
3.1.0-dev0029 9.02 KB Thu, 28 Mar 2019 11:41:56 GMT 132
3.1.0-dev0028 9.01 KB Thu, 28 Mar 2019 11:16:08 GMT 141
3.1.0-dev0026 9.01 KB Thu, 28 Mar 2019 09:36:10 GMT 150
3.1.0-dev0015 9.02 KB Tue, 26 Mar 2019 12:49:33 GMT 149
3.0.0 9.01 KB Wed, 24 Apr 2019 12:20:42 GMT 146
3.0.0-alpha-0080 10.34 KB Tue, 26 Mar 2019 10:43:11 GMT 137
3.0.0-alpha-0078 10.34 KB Tue, 05 Feb 2019 09:02:44 GMT 146
3.0.0-alpha-0075 10.34 KB Sun, 02 Dec 2018 13:01:12 GMT 134
3.0.0-alpha-0073 10.35 KB Sun, 02 Dec 2018 09:16:39 GMT 148
3.0.0-alpha-0072 10.35 KB Sun, 08 Jul 2018 09:35:24 GMT 146
3.0.0-alpha-0071 10.35 KB Fri, 06 Jul 2018 15:51:55 GMT 122
3.0.0-alpha-0070 10.35 KB Fri, 06 Jul 2018 15:00:22 GMT 140
3.0.0-alpha-0069 10.34 KB Fri, 06 Jul 2018 14:28:12 GMT 137
3.0.0-alpha-0067 10.34 KB Wed, 04 Jul 2018 10:27:35 GMT 138
3.0.0-alpha-0066 10.34 KB Wed, 27 Jun 2018 09:58:11 GMT 115
3.0.0-alpha-0065 10.34 KB Thu, 14 Jun 2018 12:11:18 GMT 164
3.0.0-alpha-0064 10.34 KB Thu, 14 Jun 2018 11:53:17 GMT 149
3.0.0-alpha-0063 10.35 KB Thu, 14 Jun 2018 11:33:31 GMT 139
3.0.0-alpha-0060 10.34 KB Sun, 03 Jun 2018 11:31:51 GMT 142
3.0.0-alpha-0059 10.36 KB Fri, 11 May 2018 12:39:45 GMT 214
2.1.0-alpha-0058 10.36 KB Fri, 13 Apr 2018 15:15:39 GMT 129
2.1.0-alpha-0057 10.3 KB Sat, 31 Mar 2018 12:37:59 GMT 146
2.1.0-alpha-0055 12.14 KB Sat, 31 Mar 2018 11:38:44 GMT 140
2.1.0-alpha-0054 6.61 KB Fri, 30 Mar 2018 13:00:42 GMT 153