shermozle/SnowCannon — pull request #20 by alexanderdean (2012-08-22 07:45:25+00:00)
Title: Added hostname tracking, server status monitoring, cleaned up URL routing

Refactoring to clean up the URL routing. Now supports:

* /ice.png -> logs a SnowPlow event
* /healthcheck -> sends 200 and "OK" in plaintext, useful for load balancing/Pingdom
* /status -> gives server stats in JSON. Useful for manual checks/Graphite or similar
* anything else 404s (so that e.g. browser favicon checks, robots etc don't log spurious SnowPlow events)

Also added hostname to the SnowPlow event (and to the server stats because may be multiple instances of SnowCannon behind an LB).