Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.52 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.52 KB

Prometheus.Client.AspNetCore

NuGet Badge Build status License MIT Codacy Badge

Extension for Prometheus.Client

Installation:

 dotnet add package Prometheus.Client.AspNetCore

Quik start:

There are Examples

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime)
{
    app.UsePrometheusServer();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime)
{
    app.UsePrometheusServer(q =>
                {
                    q.MapPath = "/metrics1";
                });
}