apisix icon indicating copy to clipboard operation
apisix copied to clipboard

feature(prometheus): support to collect metric `overhead`

Open membphis opened this issue 6 years ago • 1 comments

we can take an example at latency, here is the fake code:

overhead_time = ngx.now() - ngx.req.start_time() - ctx.var.upstream_response_time

https://github.com/apache/incubator-apisix/blob/master/apisix/plugins/prometheus/exporter.lua#L53

https://github.com/apache/incubator-apisix/blob/master/apisix/plugins/prometheus/exporter.lua#L80-L81

membphis avatar Apr 30 '20 08:04 membphis

Could we prioritize this item? We need this feature for root cause checking for performance issues

JanLi-air avatar May 11 '20 07:05 JanLi-air