The way we process stats at Smoothbeats.com is a bit more complex, making use of multiple components. This allows us to consolidate listener stats from many servers, and makes the data available in a way that can be used by other tools.
First, we have a perl script that polls all relays and collects and consolidates data. This is run every 2 minutes, and outputs data to a CSV logfile for processing by other tools.
Next, we have an "xmlstats" tool that pulls data from these consolidated stats, track history, as well as other bits of useful metadata. This tool outputs data in xml format, which can be utilized by other tools that are capable of digesting xml feeds.
hiphop / nujazz