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

Microsoft.Extensions.DependencyInjection (IServiceCollection) support for App Metrics.

PM> Install-Package App.Metrics.Extensions.DependencyInjection -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.DependencyInjection -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.DependencyInjection --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.DependencyInjection" 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.DependencyInjection  ~> 4.5.1-preview.0.1
Copy to clipboard

> choco install App.Metrics.Extensions.DependencyInjection --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.DependencyInjection" -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"

  • .NETStandard 2.0
    • App.Metrics (>= 4.3.0)
    • Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.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 dependencyinjection

Info

22533 total downloads
148 downloads for version 4.5.1-preview.0.1
Download (14.36 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
4.5.1-preview.0.1 14.36 KB Wed, 23 Jul 2025 12:02:27 GMT 148
4.4.0-preview.0.11 14.38 KB Wed, 23 Jul 2025 11:00:13 GMT 111
4.4.0-preview.0.10 14.38 KB Thu, 23 Nov 2023 00:10:47 GMT 145
4.4.0-preview.0.9 14.37 KB Thu, 12 Oct 2023 02:05:02 GMT 154
4.4.0-preview.0.8 14.37 KB Thu, 12 Oct 2023 01:28:37 GMT 159
4.4.0-preview.0.6 14.37 KB Thu, 12 Oct 2023 01:03:31 GMT 152
4.4.0-preview.0.5 14.36 KB Wed, 22 Jun 2022 22:09:57 GMT 142
4.4.0-preview.0.4 14.37 KB Fri, 26 Nov 2021 11:42:26 GMT 125
4.3.1-preview.0.3 14.37 KB Wed, 23 Jul 2025 11:47:33 GMT 159
4.3.1-preview.0.1 14.38 KB Fri, 26 Nov 2021 11:09:11 GMT 151
4.3.0 14.33 KB Fri, 26 Nov 2021 10:50:40 GMT 159
4.3.0-preview.0.34 14.38 KB Fri, 26 Nov 2021 10:33:13 GMT 148
4.3.0-preview.0.33 14.38 KB Wed, 13 Oct 2021 02:10:42 GMT 127
4.3.0-preview.0.32 14.38 KB Wed, 13 Oct 2021 02:00:58 GMT 140
4.3.0-preview.0.31 14.37 KB Wed, 13 Oct 2021 01:48:03 GMT 121
4.3.0-preview.0.30 14.37 KB Wed, 26 May 2021 08:11:43 GMT 157
4.3.0-preview.0.29 14.38 KB Wed, 26 May 2021 08:00:09 GMT 168
4.3.0-preview.0.28 14.37 KB Wed, 26 May 2021 07:50:31 GMT 136
4.3.0-preview.0.25 14.38 KB Wed, 26 May 2021 07:19:49 GMT 162
4.3.0-preview.0.1 14.37 KB Fri, 26 Nov 2021 10:42:07 GMT 149
4.2.0 14.33 KB Thu, 15 Apr 2021 12:46:10 GMT 151
4.2.0-preview.0.35 14.38 KB Tue, 13 Apr 2021 08:59:15 GMT 155
4.2.0-preview.0.34 14.36 KB Tue, 30 Mar 2021 20:05:42 GMT 148
4.2.0-preview.0.33 14.37 KB Fri, 26 Mar 2021 21:13:45 GMT 150
4.2.0-preview.0.32 14.38 KB Thu, 18 Mar 2021 01:10:49 GMT 135
4.2.0-preview.0.31 14.37 KB Thu, 18 Mar 2021 01:13:50 GMT 155
4.2.0-preview.0.30 14.37 KB Wed, 17 Mar 2021 23:55:20 GMT 143
4.2.0-preview.0.29 14.38 KB Wed, 17 Mar 2021 23:48:32 GMT 160
4.2.0-preview.0.28 14.38 KB Wed, 17 Mar 2021 23:47:38 GMT 134
4.2.0-preview.0.27 14.37 KB Fri, 22 Jan 2021 08:27:19 GMT 124
4.2.0-preview.0.26 14.38 KB Tue, 12 Jan 2021 22:13:52 GMT 117
4.2.0-preview.0.25 14.38 KB Sat, 12 Dec 2020 07:05:20 GMT 142
4.2.0-preview.0.24 14.38 KB Fri, 04 Dec 2020 06:17:30 GMT 161
4.2.0-preview.0.23 14.38 KB Thu, 15 Apr 2021 11:46:10 GMT 122
4.2.0-preview.0.22 14.38 KB Wed, 24 Mar 2021 21:54:07 GMT 130
4.2.0-preview.0.21 14.38 KB Fri, 04 Dec 2020 05:52:40 GMT 131
4.2.0-preview.0.20 18.46 KB Wed, 18 Nov 2020 12:05:09 GMT 135
4.2.0-preview.0.19 14.37 KB Thu, 08 Oct 2020 13:50:21 GMT 166
4.2.0-preview.0.18 14.38 KB Fri, 07 Aug 2020 09:38:10 GMT 148
4.2.0-preview.0.17 14.37 KB Fri, 07 Aug 2020 09:28:42 GMT 121
4.2.0-preview.0.16 14.37 KB Fri, 31 Jul 2020 14:05:03 GMT 136
4.2.0-preview.0.15 14.38 KB Fri, 31 Jul 2020 12:12:29 GMT 155
4.2.0-preview.0.14 14.37 KB Fri, 31 Jul 2020 11:30:58 GMT 155
4.2.0-preview.0.13 14.37 KB Fri, 31 Jul 2020 10:26:34 GMT 144
4.2.0-preview.0.12 14.38 KB Fri, 31 Jul 2020 10:25:34 GMT 156
4.2.0-preview.0.11 14.37 KB Thu, 09 Jul 2020 15:18:49 GMT 158
4.2.0-preview.0.10 14.37 KB Thu, 09 Jul 2020 12:43:57 GMT 126
4.2.0-preview.0.9 14.37 KB Fri, 03 Jul 2020 08:29:16 GMT 138
4.2.0-preview.0.8 14.36 KB Wed, 24 Jun 2020 11:17:41 GMT 142
4.2.0-preview.0.7 14.37 KB Mon, 22 Jun 2020 03:09:28 GMT 158
4.2.0-preview.0.6 14.37 KB Fri, 19 Jun 2020 23:45:35 GMT 139
4.2.0-preview.0.5 14.36 KB Fri, 19 Jun 2020 23:43:27 GMT 137
4.2.0-preview.0.4 14.36 KB Fri, 19 Jun 2020 15:48:01 GMT 148
4.2.0-preview.0.3 14.36 KB Fri, 19 Jun 2020 15:35:11 GMT 153
4.1.0 14.31 KB Fri, 19 Jun 2020 13:16:25 GMT 233
4.1.0-preview2.0.6 14.37 KB Fri, 19 Jun 2020 12:27:00 GMT 142
4.1.0-preview2.0.5 14.38 KB Fri, 19 Jun 2020 12:07:30 GMT 164
4.1.0-preview2.0.3 14.37 KB Fri, 19 Jun 2020 11:32:53 GMT 143
4.1.0-preview.0.34 14.37 KB Fri, 19 Jun 2020 09:45:33 GMT 136
4.1.0-preview.0.33 14.37 KB Thu, 18 Jun 2020 13:39:13 GMT 131
4.1.0-preview.0.32 14.37 KB Thu, 18 Jun 2020 12:11:22 GMT 145
4.1.0-preview.0.24 14.37 KB Mon, 15 Jun 2020 11:00:01 GMT 163
4.1.0-preview.0.23 14.37 KB Mon, 15 Jun 2020 09:14:36 GMT 132
4.1.0-preview.0.22 14.37 KB Sun, 14 Jun 2020 08:57:30 GMT 138
4.1.0-preview.0.21 14.36 KB Wed, 10 Jun 2020 22:36:59 GMT 137
4.1.0-preview.0.20 14.38 KB Wed, 10 Jun 2020 04:08:55 GMT 163
4.1.0-preview.0.19 14.38 KB Wed, 10 Jun 2020 03:02:22 GMT 128
4.1.0-preview.0.18 14.37 KB Fri, 29 May 2020 13:08:42 GMT 155
4.1.0-preview.0.17 14.37 KB Thu, 28 May 2020 03:01:02 GMT 138
4.1.0-preview.0.16 14.38 KB Mon, 25 May 2020 01:33:00 GMT 158
4.1.0-preview.0.15 14.37 KB Fri, 22 May 2020 11:54:50 GMT 156
4.1.0-preview.0.14 14.37 KB Fri, 22 May 2020 11:46:21 GMT 142
4.0.0 12.73 KB Fri, 22 May 2020 11:10:20 GMT 176
4.0.0-preview1.0.11 12.78 KB Tue, 12 May 2020 10:21:07 GMT 129
4.0.0-preview1.0.10 12.77 KB Tue, 12 May 2020 10:02:44 GMT 142
4.0.0-preview1.0.9 12.77 KB Tue, 28 Apr 2020 11:33:50 GMT 154
4.0.0-preview1.0.8 12.77 KB Tue, 28 Apr 2020 11:21:51 GMT 160
4.0.0-preview1.0.7 12.77 KB Fri, 03 Apr 2020 22:47:50 GMT 144
4.0.0-preview1.0.6 12.77 KB Fri, 03 Apr 2020 22:02:18 GMT 142
4.0.0-preview1.0.5 12.78 KB Tue, 31 Mar 2020 11:20:06 GMT 170
4.0.0-preview1.0.4 12.78 KB Tue, 31 Mar 2020 09:13:48 GMT 159
4.0.0-preview1.0.3 12.77 KB Sun, 03 Nov 2019 00:44:08 GMT 291
4.0.0-preview.0.2 12.76 KB Thu, 31 Oct 2019 11:41:22 GMT 144
4.0.0-alpha.0.13 14.36 KB Fri, 22 May 2020 11:24:01 GMT 142
4.0.0-alpha.0.12 12.77 KB Fri, 22 May 2020 10:51:55 GMT 158
4.0.0-alpha.0.4 12.76 KB Fri, 22 May 2020 10:58:50 GMT 179
3.3.0-dev0002 6.51 KB Mon, 28 Oct 2019 10:30:08 GMT 157
3.2.0 6.5 KB Fri, 25 Oct 2019 13:18:18 GMT 177
3.2.0-dev0031 6.52 KB Fri, 25 Oct 2019 13:25:52 GMT 155
3.2.0-dev0027 6.51 KB Fri, 25 Oct 2019 12:56:40 GMT 146
3.2.0-dev0026 6.51 KB Fri, 25 Oct 2019 12:21:29 GMT 158
3.2.0-dev0024 6.51 KB Fri, 25 Oct 2019 12:19:40 GMT 137
3.2.0-dev0022 6.51 KB Thu, 01 Aug 2019 10:59:09 GMT 155
3.2.0-dev0019 6.51 KB Sat, 20 Jul 2019 22:50:26 GMT 137
3.2.0-dev0015 6.51 KB Wed, 05 Jun 2019 11:17:27 GMT 147
3.2.0-dev0012 6.5 KB Wed, 29 May 2019 09:21:47 GMT 135
3.2.0-dev0010 6.52 KB Wed, 29 May 2019 09:21:08 GMT 136
3.2.0-dev0008 6.51 KB Mon, 13 May 2019 07:55:37 GMT 148
3.2.0-dev0006 6.52 KB Mon, 13 May 2019 07:54:10 GMT 155
3.2.0-dev0004 6.52 KB Mon, 13 May 2019 07:54:08 GMT 127
3.2.0-dev0002 6.5 KB Fri, 26 Apr 2019 01:56:06 GMT 116
3.1.1 6.51 KB Fri, 25 Oct 2019 12:49:50 GMT 132
3.1.0 6.49 KB Wed, 24 Apr 2019 12:51:18 GMT 1379
3.1.0-dev0032 6.51 KB Mon, 22 Apr 2019 09:21:40 GMT 122
3.1.0-dev0031 6.5 KB Mon, 22 Apr 2019 09:19:39 GMT 144
3.1.0-dev0030 6.5 KB Mon, 22 Apr 2019 09:03:32 GMT 150
3.1.0-dev0029 6.51 KB Thu, 28 Mar 2019 11:41:50 GMT 156
3.1.0-dev0028 6.5 KB Thu, 28 Mar 2019 11:16:03 GMT 150
3.1.0-dev0026 6.51 KB Thu, 28 Mar 2019 09:36:05 GMT 162
3.1.0-dev0015 6.5 KB Tue, 26 Mar 2019 12:49:28 GMT 133
3.0.0 6.51 KB Wed, 24 Apr 2019 12:20:37 GMT 186
3.0.0-alpha-0080 7.41 KB Tue, 26 Mar 2019 10:43:10 GMT 116
3.0.0-alpha-0078 7.41 KB Tue, 05 Feb 2019 09:02:43 GMT 160
3.0.0-alpha-0075 7.41 KB Sun, 02 Dec 2018 13:01:11 GMT 167
3.0.0-alpha-0073 7.41 KB Sun, 02 Dec 2018 09:16:38 GMT 157
3.0.0-alpha-0072 7.41 KB Sun, 08 Jul 2018 09:35:23 GMT 159
3.0.0-alpha-0071 7.41 KB Fri, 06 Jul 2018 15:51:54 GMT 142
3.0.0-alpha-0070 7.41 KB Fri, 06 Jul 2018 15:00:21 GMT 157
3.0.0-alpha-0069 7.41 KB Fri, 06 Jul 2018 14:28:11 GMT 146
3.0.0-alpha-0067 7.42 KB Wed, 04 Jul 2018 10:27:33 GMT 108
3.0.0-alpha-0066 7.4 KB Wed, 27 Jun 2018 09:58:10 GMT 151
3.0.0-alpha-0065 7.42 KB Thu, 14 Jun 2018 12:11:17 GMT 117
3.0.0-alpha-0064 7.41 KB Thu, 14 Jun 2018 11:53:16 GMT 148
3.0.0-alpha-0063 7.41 KB Thu, 14 Jun 2018 11:33:30 GMT 154
3.0.0-alpha-0060 7.41 KB Sun, 03 Jun 2018 11:31:50 GMT 137
3.0.0-alpha-0059 7.42 KB Fri, 11 May 2018 12:39:44 GMT 185
2.1.0-alpha-0058 7.42 KB Fri, 13 Apr 2018 15:15:38 GMT 167
2.1.0-alpha-0057 7.38 KB Sat, 31 Mar 2018 12:37:59 GMT 148
2.1.0-alpha-0055 7.38 KB Sat, 31 Mar 2018 11:38:43 GMT 133
2.1.0-alpha-0054 7.38 KB Fri, 30 Mar 2018 13:00:41 GMT 174
2.1.0-alpha-0047 7.38 KB Thu, 29 Mar 2018 17:15:58 GMT 129
2.1.0-alpha-0046 7.36 KB Thu, 29 Mar 2018 16:49:18 GMT 118
2.0.0 7.34 KB Sun, 02 Dec 2018 13:05:31 GMT 144
2.0.0-preview2-0044 7.36 KB Thu, 29 Mar 2018 13:47:38 GMT 125
2.0.0-preview2-0042 7.38 KB Mon, 12 Feb 2018 12:53:33 GMT 152
2.0.0-preview2-0041 7.37 KB Fri, 09 Feb 2018 14:46:21 GMT 143
2.0.0-preview1 7.36 KB Tue, 06 Feb 2018 12:35:25 GMT 152
2.0.0-beta-0035 7.37 KB Fri, 20 Oct 2017 14:16:47 GMT 163
2.0.0-beta-0034 7.36 KB Fri, 20 Oct 2017 13:57:06 GMT 143
2.0.0-beta-0033 7.37 KB Wed, 18 Oct 2017 12:08:07 GMT 165
2.0.0-beta-0032 7.36 KB Mon, 16 Oct 2017 11:41:54 GMT 148
2.0.0-beta-0031 6.26 KB Mon, 16 Oct 2017 11:02:44 GMT 150
2.0.0-beta-0030 6.25 KB Fri, 13 Oct 2017 11:37:42 GMT 149
2.0.0-alpha 6.24 KB Mon, 09 Oct 2017 11:56:38 GMT 146