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";
});
}
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.
If you like what I'm accomplishing, feel free to buy me a coffee
All contents of this package are licensed under the MIT license.