prometheus/promdash — pull request #246 by discordianfish (2014-12-10 18:25:09+00:00)
Title: Build api url properly instead of concatenation

Hi,

as mentioned in IRC yesterday, if you don't add a trailing slash to the url when adding a server, promdash can't load graphs and metrics since it just blindly adds the url path (without leading slash).

This PR fixes this by using this pattern: https://gist.github.com/jlong/2428561