Getting statistics in the Google App Engine

I want to show my users statistics, for example, hits / second in Google App Engine. I started the roll myself:

  • In each page view, add 1 to the memcache account.

Every minute:

  • Read and reset the counter, and set the variable โ€œstarting withโ€ for it.
  • Divide the number of hits by the amount of time since the last calculation.
  • Save the data for the object to the data warehouse.
  • Throwing data that is really old.

Then I realized that this is nontrivial, and there must be a library for this, but I can not find the one that works for me. I looked briefly at rrd4j and JRobin, but I'm not sure if they can be used in the Google App Engine without a lot of rewriting. Does anyone have any ideas?

+5
source share
6 answers

I seem to remember that the generous community has what you need, but I donโ€™t know if they can easily be ported to GAE: https://github.com/twitter/commons

+1
source

Try the new technique mentioned in this post http://googleappengine.blogspot.com/2012/07/analyzing-your-google-app-engine-logs.html .

More work is needed, but worth a try. I use Mache (java framework) to load application logs into BigQuery and the BigQuery API to query results. Now select the fantastic javascript chart library and impress your users. A very powerful, flexible and scalable solution.

+2
source

, ProdEagle . , , , , , memcache, .

+2

Mixpanel. , API... .

+1

, , , . , .

+1

Perhaps you can use Google Analytics . You just need to copy and paste some javascript into your templates.

0
source

All Articles