feat(plugins): added prometheus dashboard to prometheus data source, #4298

This commit is contained in:
Torkel Ödegaard
2016-03-12 10:40:55 +01:00
parent 53dc145ce7
commit d575a5ce12
6 changed files with 615 additions and 32 deletions

View File

@ -59,13 +59,14 @@ func TestDashboardImport(t *testing.T) {
Convey("When evaling dashboard template", t, func() {
template, _ := simplejson.NewJson([]byte(`{
"__inputs": {
"graphite": {
"__inputs": [
{
"name": "DS_NAME",
"type": "datasource"
}
},
],
"test": {
"prop": "$__graphite"
"prop": "${DS_NAME}"
}
}`))