Neyro.AppMetrics.Extensions.EventCountersCollector 0.0.8

dotnet add package Neyro.AppMetrics.Extensions.EventCountersCollector --version 0.0.8                
NuGet\Install-Package Neyro.AppMetrics.Extensions.EventCountersCollector -Version 0.0.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Neyro.AppMetrics.Extensions.EventCountersCollector" Version="0.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Neyro.AppMetrics.Extensions.EventCountersCollector --version 0.0.8                
#r "nuget: Neyro.AppMetrics.Extensions.EventCountersCollector, 0.0.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Neyro.AppMetrics.Extensions.EventCountersCollector as a Cake Addin
#addin nuget:?package=Neyro.AppMetrics.Extensions.EventCountersCollector&version=0.0.8

// Install Neyro.AppMetrics.Extensions.EventCountersCollector as a Cake Tool
#tool nuget:?package=Neyro.AppMetrics.Extensions.EventCountersCollector&version=0.0.8                

AppMetrics's extension for collect EventCounters data from EventSource's which supports it. E.g. RuntimeEventSource or NpgsqlEventSource

Usage:

Just add EventCountersCollector as HostedService in your AspNetCore app.

services.AddHostedService(sp => new Neyro.AppMetrics.Extensions.EventCountersCollector(
	sp.GetRequiredService<IMetricsRoot>(),
    new Neyro.AppMetrics.Extensions.EventCountersCollectorOptions
    {
		RefreshIntervalSec = 5,
        EnabledSources = new[] { "System.Runtime", "Npgsql" }
    }
));

If you use this package, please star repo on github

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.8 118,222 8/2/2021
0.0.7 92,108 11/3/2020
0.0.6 847 11/3/2020 0.0.6 is deprecated because it has critical bugs.
0.0.5 1,162 10/26/2020 0.0.5 is deprecated because it has critical bugs.
0.0.4 14,337 3/30/2020
0.0.3 3,210 9/28/2019

0.0.8 Added the ability to set a filter based on Interval Sec to exclude noise.
     0.0.7 Inadvertently obsolete previous version of a package in Nuget
     0.0.6 Fix caching of counters when metadata is used
     0.0.5 Allow setting tags from event metadata
     0.0.4 Targeted to netstandard2.1.
     0.0.3 Avoid allocations
     0.0.3 Avoid allocations
     0.0.2 Fixed possible collisions on counter names from different sources
     0.0.1 First raw preview version of package.