-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stats on usage? #405
Comments
That's something we've been working on for a while now. The data isn't ready just yet, but in the very near future that should change. |
Sounds good! I'm excited. :) |
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 etc etc 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. |
@webignition if you select a date range that is larger than 1 day, the dates will appear in the array. Does that help? |
Yes, that helps. It makes much more sense now. Thanks! |
It would be better to use the ISO 8601 date format, especially for foreigns, and it is parseable in every environment. |
put stats on the homepage http://cdnjs.com also only library specific stats will ever be shown, need to draw up a terms of service that states we will never disclose information about particular websites |
Suggestion: Show number of unique websites that are using. Will there be statistic by version? Make the value on "hits" to int in json string. |
http://stats.cdnjs.com is timing out a lot. |
Looks like we need an uptime stats page for the stats page :) |
How is it going with the stats? http://stats.cdnjs.com seems down. |
I would love to see stats for the cdn.js hosted libraries. Any updates on this? |
Hey guys, 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) |
How were you parsing the data with the http://stats.cdnjs.com API? |
Same as my solution in the previous comment. But it was buggy so wanted to rewrite the parser. |
Gotcha, that makes sense. Let me know if you want any help with the UI. |
Discussion moved to #1078 |
I'm curious if you can offer any sort of data on the relative traffic of all the libraries.
Knowing which are used more and less often would be very helpful, I think, to a lot of developers.
I'll take some raw data if that's easier for you.
The text was updated successfully, but these errors were encountered: