Added / on api path to prevent wrong url param

This commit is contained in:
Shalom Yerushalmy 2017-10-10 16:28:11 +03:00
parent f89842801f
commit 9b38f1e81c

View File

@ -46,7 +46,7 @@ class Prometheus(BaseQueryRunner):
error = None
query = query.strip()
local_query = 'api/v1/query'
local_query = '/api/v1/query'
url = base_url + local_query
payload = {'query': query}
response = requests.get(url, params=payload)