Magento 2 profiler performance check - NewRelic alternative

nginx map query to profiler:

  
map $query_string $MAGE_PROFILER {
  ~^"DEVELOPMENT=Q9ARzXbrwI" html;
}

or we can call just a single page location:

  
 ## Profiler location
 location ~ /profiler_test_page { 
	set $MAGE_PROFILER html; 
	try_files $uri $uri/ /index.php$is_args$args;
 }
  
  ## Process php
  location ~ ^/(index|health_check|get|static|errors/(report|404|503))\.php$ {
  ...
   ## Enable Magento profiler
   fastcgi_param MAGE_PROFILER $MAGE_PROFILER;
  ...
 }

Varnish pass query parameter:

  
 if (req.url ~ "[\?&]DEVELOPMENT=Q9ARzXbrwI") { return (pass); }

link/profiler_test_page?DEVELOPMENT=Q9ARzXbrwI