apisix
apisix copied to clipboard
feature(prometheus): support to collect metric `overhead`
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
Could we prioritize this item? We need this feature for root cause checking for performance issues