scobal/seyren — pull request #57 by usmanismail (2012-10-05 07:56:20+00:00)
Title: Adding support for path parameters in graphite host url

I want to use seyren with a Service called Hosted Graphite (http://hostedgraphite.com/) Unfortunately they expose the graphite render front end using a rest interface.

Some thing like https://www.hostedgraphite.com/USER_ID/SECRET/graphite

This causes problems in IP Resolution because the current code thinks the entire path is the host name. I have updated to check for a path specified in the GRAPHITE_URL and separated the path from the host parameter.

This should not cause any changes to url's without path specification and maybe useful for others wanting to use hosted graphite or other such services. Can this be merged into main line?