Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Graphite for redirects

12 views
Skip to first unread message

Paul McLanahan

unread,
Nov 17, 2012, 10:11:13 PM11/17/12
to mozilla.org development
Since we're adding vanity urls to bedrock instead of using the mzl.la
bitly account, I'm thinking it'd be nice to have some stats for these
things. My thought is that we should just add a statsd call to the
redirect helper function that will increment a counter for a key made
from the redirect-from url w/ the slashes replaced with dots.

Thoughts?

Paul McLanahan
Mozilla Webdev
--pmac

Anthony Ricaud

unread,
Nov 19, 2012, 9:26:54 AM11/19/12
to cm...@mozilla.com
I see no performance problem by adding this. Remember though that we
want to cache those redirects so the Python code will not be executed
for every request. Those won't be real stats.

My biggest concern about our redirects is that we keep adding, adding,
adding and our .htaccess files are a mess because of that. We've just
started doing some redirects in Bedrock and if we don't pay attention, I
believe it'll become as messy.

We're already paying for a service with our own domain. I believe we
should use that for our vanity URLs. It provides a better stats service
and a shorter URL to type. I seem to recall Chris made a decision about
this earlier this year.
0 new messages