a web browser send a request , which arrives haproxy at time A
then request passthrough services and db ,we call it backend
backend generates a response,whitch arrives haproxy at time B
so , how can I statistic time cost ( time B- time A)
It is very important for solving problems
Log %Tr and/or any other interesting metric in a dedicated field of a graylog-like tool so you can use it to analyze event times; see also custom log;
Perhaps you just want to follow the average time, if so you can collect http_response_time_average_seconds prometheus metric (you'll need ingress v0.10 or this exporter) or the rtime field from the csv.
Hi please consider below situation
a web browser send a request , which arrives haproxy at time A then request passthrough services and db ,we call it backend backend generates a response,whitch arrives haproxy at time B so , how can I statistic time cost ( time B- time A) It is very important for solving problems
best wishes ,thanks