ASP.NET Core middleware for Prometheus.Client
$ dotnet add package Prometheus.Client.AspNetCoreExtension for Prometheus.Client
dotnet add package Prometheus.Client.AspNetCore
public void Configure(IApplicationBuilder app)
{
app.UsePrometheusServer();
}
public void Configure(IApplicationBuilder app)
{
app.UsePrometheusServer(q =>
{
q.MapPath = "/prom";
q.MetricPrefixName = "my_app_";
});
}
Contributions to the package are always welcome!
All contents of this package are licensed under the MIT license.