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
<PackageReference Include="Neyro.AppMetrics.Extensions.EventCountersCollector" Version="0.0.8" />
paket add Neyro.AppMetrics.Extensions.EventCountersCollector --version 0.0.8
#r "nuget: Neyro.AppMetrics.Extensions.EventCountersCollector, 0.0.8"
// 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 | Versions 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. |
-
.NETCoreApp 3.0
- App.Metrics.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 3.0.0)
- Microsoft.Extensions.Options (>= 3.0.0)
-
.NETStandard 2.1
- App.Metrics.Abstractions (>= 3.1.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 3.0.0)
- Microsoft.Extensions.Options (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.