Browse Source

fix: test data api route used old name for test data datasource, fixes #12773

Torkel Ödegaard 7 years ago
parent
commit
276a5e6eb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/api/metrics.go

+ 1 - 1
pkg/api/metrics.go

@@ -99,7 +99,7 @@ func GetTestDataRandomWalk(c *m.ReqContext) Response {
 	timeRange := tsdb.NewTimeRange(from, to)
 	timeRange := tsdb.NewTimeRange(from, to)
 	request := &tsdb.TsdbQuery{TimeRange: timeRange}
 	request := &tsdb.TsdbQuery{TimeRange: timeRange}
 
 
-	dsInfo := &m.DataSource{Type: "grafana-testdata-datasource"}
+	dsInfo := &m.DataSource{Type: "testdata"}
 	request.Queries = append(request.Queries, &tsdb.Query{
 	request.Queries = append(request.Queries, &tsdb.Query{
 		RefId:      "A",
 		RefId:      "A",
 		IntervalMs: intervalMs,
 		IntervalMs: intervalMs,