diff --git a/pkg/tsdb/models/proxy/wrapper.go b/pkg/tsdb/models/proxy/wrapper.go index b6c9611024b..ab25412a848 100644 --- a/pkg/tsdb/models/proxy/wrapper.go +++ b/pkg/tsdb/models/proxy/wrapper.go @@ -77,8 +77,10 @@ func (tw *TsdbWrapper) Query(ctx context.Context, ds *models.DataSource, query * points := tsdb.TimeSeriesPoints{} for _, p := range s.Points { - po := tsdb.NewTimePoint(null.FloatFrom(float64(p.Timestamp.Nanos)), p.Value) - points = append(points, po) + if p.Timestamp != nil { + po := tsdb.NewTimePoint(null.FloatFrom(p.Value), float64(p.Timestamp.Seconds)) + points = append(points, po) + } } res.Results[r.RefId].Series = append(res.Results[r.RefId].Series, &tsdb.TimeSeries{