Awesome
Prometheus.Client.DependencyInjection
Installation
dotnet add package Prometheus.Client.DependencyInjection
Use
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddMetricFactory();
}
or compatible with old static code:
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddMetricFactory(Metrics.DefaultCollectorRegistry);
}
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's git repository.
License
All contents of this package are licensed under the MIT license.