From 6053cb3eb27e6d95a897e4b58c528a098944c884 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 13 Jan 2021 15:13:34 +0100 Subject: [PATCH] add new nginx metrics to measure performance --- docker/nginx/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index a266943d..1c225e72 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -40,7 +40,10 @@ http { '"$http_user_agent" $upstream_response_time ' '$upstream_bytes_sent $upstream_bytes_received ' '"$upstream_http_content_type" "$upstream_cache_status" ' - '"$portal_domain" "$upstream_http_skynet_skylink"'; + '"$portal_domain" "$upstream_http_skynet_skylink" ' + 'request_time=$request_time ' + 'upstream_connect_time=$upstream_connect_time ' + 'upstream_header_time=$upstream_header_time'; access_log logs/access.log main;