Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.9 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.9 KB

Prometheus.Client.DependencyInjection

ci nuget nuget codecov license

Install

dotnet add package Prometheus.Client.DependencyInjection

Use

public IServiceProvider ConfigureServices(IServiceCollection services)
{
    services.AddMetricFactory();
}

or compatible with static Metrics.DefaultCollectorRegistry:

public IServiceProvider ConfigureServices(IServiceCollection services)
{
    services.AddMetricFactory(Metrics.DefaultCollectorRegistry);
}

Contribute

Contributions to the package are always welcome!

License

All contents of this package are licensed under the MIT license.