Build api url properly instead of concatenation
Fix incorrect url for pie charts.
Merge pull request #246 from prometheus/fix-server-url-parsing

Build api url properly instead of concatenation