/Prometheus.Client.HttpRequestDurations

Metrics logging of request durations

Primary LanguageC#MIT LicenseMIT

Prometheus.Client.HttpRequestDurations

Build status MyGet NuGet License MIT

Installation

dotnet add package Prometheus.Client.HttpRequestDurations

Quik start:

There are Examples

app.UsePrometheusRequestDurations(q =>
{
    q.IncludePath = true;
    q.IncludeMethod = true;
    q.IgnoreRoutesConcrete = new[]
    {
        "/favicon.ico",
        "/robots.txt",
        "/"
    };
    q.IgnoreRoutesStartWith = new[]
    {
        "/swagger"
    };
    q.CustomLabels = new Dictionary<string, string>
    {
        { "service_name", "example" }
    };
});

License

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