Commit 9a29b045 by Torkel Ödegaard

Dashboard import/export now works

parent c970e827
Subproject commit a0036179d500366e28552d2c332fd50f534913a3 Subproject commit 1c5f902770c260f9bc63a0f07f1e9d22f60ce796
...@@ -46,6 +46,10 @@ func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error) ...@@ -46,6 +46,10 @@ func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error)
} }
} }
if ds.Type == m.DS_ES {
dsMap["index"] = ds.Database
}
datasources[ds.Name] = dsMap datasources[ds.Name] = dsMap
} }
......
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
const ( const (
DS_GRAPHITE = "graphite" DS_GRAPHITE = "graphite"
DS_INFLUXDB = "influxdb" DS_INFLUXDB = "influxdb"
DS_ES = "es" DS_ES = "elasticsearch"
DS_ACCESS_DIRECT = "direct" DS_ACCESS_DIRECT = "direct"
DS_ACCESS_PROXY = "proxy" DS_ACCESS_PROXY = "proxy"
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment