Disable appstats on app.yaml

75 views
Skip to first unread message

Moises Belchin

unread,
Apr 12, 2012, 3:55:24 AM4/12/12
to Google App Engine
Hi all,

Is there any way to disable appstats only for one handler through app.yaml ?

How can I get additional infor for appstats advanced configuration ?

I want to disable appstats for remote_api handler.

- url: /_ah/remote_api
   script: google.appengine.ext.remote_api.handler.application
   login: admin

Thanks so much.

Saludos.
Moisés Belchín.

Jason Collins

unread,
Apr 12, 2012, 12:00:33 PM4/12/12
to Google App Engine
You can filter in appengine_config.py like this:

appstats_FILTER_LIST = [{'PATH_INFO': '!^/your/unwanted/handler/here/
$'}]

The "!" at the front tells appstats that you don't want that in your
recording.

google/appengine/ext/appstats/sample_appengine_config.py has a whole
bunch of other goodness in it.

j

Moises Belchin

unread,
Apr 13, 2012, 3:42:06 AM4/13/12
to google-a...@googlegroups.com
Thanks for the answer It's very useful.

Thanks so much.

Saludos.
Moisés Belchín.



2012/4/12 Jason Collins <jason.a...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.


Moises Belchin

unread,
Jun 12, 2012, 5:06:56 AM6/12/12
to google-a...@googlegroups.com
Hi all,

I've put this on my appengine_config.py file

appstats_FILTER_LIST = [{ 'PATH_INFO': '!/_ah/*' },
                                      { 'PATH_INFO': '!/mapreduce*' }]

However I still get saved stats on my logs. [See attached image]

What's am I wrong??

Thanks for help.

Regards.
Moisés Belchín.



2012/4/13 Moises Belchin <moises...@gmail.com>
stats.png
Reply all
Reply to author
Forward
0 new messages