Getting live traffic/visitor analytics when using a reverse proxy
Posted
by jotto
on Server Fault
See other posts from Server Fault
or by jotto
Published on 2009-12-21T15:52:57Z
Indexed on
2010/03/29
0:03 UTC
Read the original article
Hit count: 399
I'm in process of implementing Varnish as a reverse proxy for a Ruby on Rails app and I'm using Google Analytics (JS/client side script to record visitor data) but it's several hours delayed so its useless for knowing what's going on now. I need at a glance live data that includes referring traffic and what current req/sec is. Right now I am using a simple Rack middleware application to do the live stats (gist.github.com/235745) but if the majority of traffic hits Varnish, Rack will never be hit so this won't work.
The closest solution I've found so far is http://www.reinvigorate.net/ but it's in beta (there are also no implementation details on their front page).
Does Varnish have traffic logs that I can custom format to match my Apache logs so I can combine them, or will I have to roll my own JS implementation like GA that shows the data in real time?
© Server Fault or respective owner