SkillAgentSearch skills...

Neyro.AppMetrics.Extensions

Extensions for App.Metrics

Install / Use

/learn @neyromant/Neyro.AppMetrics.Extensions
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Neyro.AppMetrics.Extensions.EventCountersCollector

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

Usage:

dotnet add package Neyro.AppMetrics.Extensions.EventCountersCollector --version 0.0.4

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" }
    }
));

Full example here

Nuget package is here

Dashboards for Grafana/Influx: System.Runtime, Npgsql

Example

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3y ago
Forks1

Languages

C#

Security Score

75/100

Audited on Sep 21, 2022

No findings