|
|
|
@ -6,6 +6,7 @@ import ( |
|
|
|
|
"fmt" |
|
|
|
|
|
|
|
|
|
"github.com/grafana/grafana/pkg/components/null" |
|
|
|
|
"github.com/grafana/grafana/pkg/components/simplejson" |
|
|
|
|
"github.com/grafana/grafana/pkg/log" |
|
|
|
|
"github.com/grafana/grafana/pkg/models" |
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb" |
|
|
|
@ -79,6 +80,11 @@ func (tw *DatasourcePluginWrapper) Query(ctx context.Context, ds *models.DataSou |
|
|
|
|
qr.ErrorString = r.Error |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if r.MetaJson != "" { |
|
|
|
|
metaJson, _ := simplejson.NewJson([]byte(r.MetaJson)) |
|
|
|
|
qr.Meta = metaJson |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for _, s := range r.GetSeries() { |
|
|
|
|
points := tsdb.TimeSeriesPoints{} |
|
|
|
|
|
|
|
|
|