Replies: 3 comments 1 reply
-
@cscoon prom-client-httprequestdurations all about HTTP metrics here. You can count your requests and calculate durations. Yes, it is not the same implementation. You can create issues or PRs there with additional features. |
Beta Was this translation helpful? Give feedback.
-
@cscoon Could you please describe the missing functionality so we can consider if it worth to implement it or propose some workaround? |
Beta Was this translation helpful? Give feedback.
-
I would need to have a complete list of all metrics that are emitted as a result of UseHttpMetrics() which I don't have. Based on the naming of the middleware, I would presume it to be all metrics associated with Prometheus-net's |
Beta Was this translation helpful? Give feedback.
-
We are migrating our applications from Prometheus-net to Prometheus.Client.
Prometheus-net had an extension method to IApplicationBuilder called
UseHttpMetrics()
. This method added several metrics regarding each HTTP request to the scraping endpoint. According to their source code, this method added three pieces of middleware:HttpInProgressMiddleware
,HttpRequestCountMiddleware
,HttpRequestDurationMiddleware
.Prometheus.Client.HttpRequestDurations has a method named
UsePrometheusRequestDurations(...)
, but that method seems to only addHttpRequestDurationsMiddleware
and theHttpRequestDurationsMiddleware
source code is a part of the Prometheus.Client.HttpRequestDurations project, so it must not be the same one Prometheus-net is using.Does Prometheus.Client have an equivalent to
UseHttpMetrics()
?Beta Was this translation helpful? Give feedback.
All reactions