Hi,
Is there way to get the total response time for each API call in kong.
Thanks,
Niranjan
headers = req.get_headers(),
size = var.request_length
},
upstream_uri = var.upstream_uri,
response = {
status = ngx.status,
headers = ngx.resp.get_headers(),
size = var.bytes_sent
},
tries = (ctx.balancer_data or EMPTY).tries,
latencies = {
kong = (ctx.KONG_ACCESS_TIME or 0) +
(ctx.KONG_RECEIVE_TIME or 0) +
(ctx.KONG_REWRITE_TIME or 0) +
(ctx.KONG_BALANCER_TIME or 0),
proxy = ctx.KONG_WAITING_TIME or -1,
request = var.request_time * 1000
},
authenticated_entity = authenticated_entity,
route = ctx.route,
service = ctx.service,
kong + proxy = total time in success scenarios.
Thanks @jeremyjpj0916 . We will try it out.
Hi Niranjan,
I use the http-log plugin. That gives these latencies,
latencies.kong
latencies.proxy - Upstream latency
latencies.request - Total (Kong + upstream latency)
There are other variations like udp-log plugin.