Dashboard import/export now works

This commit is contained in:
Torkel Ödegaard
2015-01-17 10:39:26 +01:00
parent c970e82758
commit 9a29b04561
3 changed files with 6 additions and 2 deletions

Submodule grafana updated: a0036179d5...1c5f902770

View File

@@ -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
}

View File

@@ -8,7 +8,7 @@ import (
const (
DS_GRAPHITE = "graphite"
DS_INFLUXDB = "influxdb"
DS_ES = "es"
DS_ES = "elasticsearch"
DS_ACCESS_DIRECT = "direct"
DS_ACCESS_PROXY = "proxy"
)