mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:52:38 +08:00
Fix "Link to Prometheus" button for proxied Prometheus sources.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user