I am working on a project using Ruby on Rails and I need to monitor web requests to generate traffic analytics (hits, unique visitors etc), but I have been instructed that using an external service, such as Google Analytics, is unacceptable (don't ask me why, I may break down and cry).
I can however, use a plug in or anything else which collates and stores the data "internally". I have a Postgres database to store the data, but is there any open source plugin/project which means I don't have to write this from scratch?