Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Stats on usage? #405
We have stats, just figuring out an efficient log parsing strategy. After that's complete I will most likely serve the data on a Restful call /statistics?start=DATE&end=DATE
which will return [
I will expose the call with CORS for all host and throw up a simple UI to peruse the stats by date.
Hey guys, heres an update, looking for feedback.
I have stats running at http://stats.cdnjs.com by default it shows todays stats which get parsed every 6 hours.
You can access historic data by using the
The query parameters take any valid Date.js(http://www.datejs.com/) value.
So for example
date.js takes a decent amount of options.
Just ironing out bugs and taking feedback at the moment
Note: The database is only storing, from 25th-ish onwards.
Looks great so far.
I'm a little curious why each library's stats are presented as an object wrapped in an array like this:
instead of without an array, like this:
The array seems unnecessary, just wondering why, not that it really matters.
we do have access to the logs in common log format (http://en.wikipedia.org/wiki/Common_Log_Format)
But we were struggling with putting together a cost efficient solution to parse them.
So for example http://www.s3stat.com/Pricing.aspx does $300 for ~5million hits a day whereas we could potentially be getting around ~15-30 million per day.
So my thoughts is to get an EC2 instance that parses them continuously and post the aggregate values for each day to a mysql database. (library, version, hits, date)