Extension for Prometheus.Client
dotnet add package Prometheus.Client.AspNetCore
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";
});
}