Commit 353c60a1 by Szeberényi Imre

grapithe_url fix

parent 2b7da3e3
......@@ -577,7 +577,7 @@ VNC_PORT_RANGE = (int(first), int(last)) # inclusive start, exclusive end
graphite_host = environ.get("GRAPHITE_HOST", None)
graphite_port = environ.get("GRAPHITE_PORT", None)
if graphite_host and graphite_port:
GRAPHITE_URL = 'http://%s:%s/render/' % (graphite_host, graphite_port)
GRAPHITE_URL = 'http://%s:%s' % (graphite_host, graphite_port)
else:
GRAPHITE_URL = None
......
......@@ -121,7 +121,7 @@ class Metric(object):
params['yMax'] = ymax
logger.debug('%s %s', graphite_url, params)
response = requests.get('%s/render/' % graphite_url, params=params)
response = requests.get('%s/render' % graphite_url, params=params)
return response.content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment