/prom-client-aspnetcore

Middleware for the Prometheus.Client

Primary LanguageC#MIT LicenseMIT

Prometheus.Client.AspNetCore

NuGet CI Master License MIT

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";
    });
}

Contribute

Contributions to the package are always welcome!

Support

If you like what I'm accomplishing, feel free to buy me a coffee

phnx47 | Buy Me a Coffe phnx47 | Kofi phnx47 | Patreon

 

License

All contents of this package are licensed under the MIT license.