dotnet add package Prometheus.Client.HttpRequestDurations
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" }
};
});
All contents of this package are licensed under the MIT license.