From 31fd03b3153b60f07d359f692c024eff6948a68e Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 22 Mar 2024 17:27:07 -0700 Subject: [PATCH] [frontend] include response times --- services/frontend/nginx.conf.template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/services/frontend/nginx.conf.template b/services/frontend/nginx.conf.template index 0a0bed39c..180368044 100644 --- a/services/frontend/nginx.conf.template +++ b/services/frontend/nginx.conf.template @@ -17,7 +17,22 @@ http { proxy_http_version 1.1; + log_format apm '[a] time="$time_local" req_id=$request_id client=$remote_addr ' + 'method=$request_method request="$request" ' + 'request_length=$request_length ' + 'status=$status bytes_sent=$bytes_sent ' + 'body_bytes_sent=$body_bytes_sent ' + 'referer=$http_referer ' + 'user_agent="$http_user_agent" ' + 'upstream_addr=$upstream_addr ' + 'upstream_status=$upstream_status ' + 'request_time=$request_time ' + 'upstream_response_time=$upstream_response_time ' + 'upstream_connect_time=$upstream_connect_time ' + 'upstream_header_time=$upstream_header_time'; + server { + access_log /var/log/nginx/access.log apm; resolver ${HEADWAY_RESOLVER}; listen ${HEADWAY_HTTP_PORT} default_server;