Fix "Link to Prometheus" button for proxied Prometheus sources.

This commit is contained in:
Julius Volz
2015-10-01 18:01:09 +02:00
parent 228aac2d48
commit 3cc69112c1
5 changed files with 14 additions and 12 deletions

View File

@ -81,6 +81,11 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
dsMap["index"] = ds.Database
}
if ds.Type == m.DS_PROMETHEUS {
// add unproxied server URL for link to Prometheus web UI
dsMap["directUrl"] = ds.Url
}
datasources[ds.Name] = dsMap
}