title: How to obtain the average backend response time from nginx live?
body: <p>I am trying to monitor the nginx backend speed of response. While I enabled response time and added it to the HTTP logs, this is not of much help for monitoring the instance live.</p>
  
  <p>I want to be able to read this every minute, computing the AVG response time so I can add this data to our monitoring services.</p>
  
  <p>How can I obtain this?</p>
  
  <p>I know that one would say to tail the logs, but that's not very easy (maybe someone has some example scripts from a similar kind of tasks). Logs can also be rotated.</p>
  
  <p>Obviously the solution should be ok to be used without having to add a huge load on the server itself, it would not be the first case where monitoring would help bringing the stuff down.</p>
  
  <p>Any scripting would do, but I have a personal preference for python and bash ones :)</p>