Skip to content

Repository files navigation

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.

About

Dependency Injection extensions

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages