You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if InstrumentHandler could not only track completed requests by http_requests_total, but also have a metric of how many requests were received, e.g. http_requests_received. Then one could calculate http_requests_received - http_requests_total to get the number of concurrent requests that have not been processed yet.
The text was updated successfully, but these errors were encountered:
That'd be better done as a gauge. Direct arithmetic on counters can break in a number of fun ways such as resets and race conditions, and is to be avoided.
beorn7
changed the title
InstrumentHandler should also count received requests
InstrumentHandler should expose a gauge "requests in flight"
Jul 27, 2016
It would be great if
InstrumentHandler
could not only track completed requests byhttp_requests_total
, but also have a metric of how many requests were received, e.g.http_requests_received
. Then one could calculatehttp_requests_received - http_requests_total
to get the number of concurrent requests that have not been processed yet.The text was updated successfully, but these errors were encountered: