diff --git a/pkg/tsdb/prometheus/querydata/response.go b/pkg/tsdb/prometheus/querydata/response.go index 69d38ae6a4d..55745272109 100644 --- a/pkg/tsdb/prometheus/querydata/response.go +++ b/pkg/tsdb/prometheus/querydata/response.go @@ -30,12 +30,6 @@ func (s *QueryData) parseResponse(ctx context.Context, q *models.Query, res *htt VectorWideSeries: s.enableWideSeries, }) - // The ExecutedQueryString can be viewed in QueryInspector in UI - // Add frame to attach metadata to it - if len(r.Frames) == 0 { - r.Frames = append(r.Frames, data.NewFrame("")) - } - for _, frame := range r.Frames { if s.enableWideSeries { addMetadataToWideFrame(q, frame) diff --git a/pkg/tsdb/prometheus/testdata/exemplar.result.golden.jsonc b/pkg/tsdb/prometheus/testdata/exemplar.result.golden.jsonc index b1e6776bd6e..cc2da59edab 100644 --- a/pkg/tsdb/prometheus/testdata/exemplar.result.golden.jsonc +++ b/pkg/tsdb/prometheus/testdata/exemplar.result.golden.jsonc @@ -26,16 +26,6 @@ // +-----------------------------------+-----------------+--------------------------------------------+----------------+-------------------+-------------------+----------------+----------------+--------------------+----------------+------------------+-----------------+-------------------+----------------------------------+ // // -// -// Frame[1] { -// "executedQueryString": "Expr: histogram_quantile(0.99, sum(rate(traces_spanmetrics_duration_seconds_bucket[15s])) by (le))\nStep: 15s" -// } -// Name: -// Dimensions: 0 Fields by 0 Rows -// + -// + -// -// // 🌟 This was machine generated. Do not edit. 🌟 { "status": 200, @@ -1050,17 +1040,6 @@ ] ] } - }, - { - "schema": { - "meta": { - "executedQueryString": "Expr: histogram_quantile(0.99, sum(rate(traces_spanmetrics_duration_seconds_bucket[15s])) by (le))\nStep: 15s" - }, - "fields": [] - }, - "data": { - "values": [] - } } ] } \ No newline at end of file diff --git a/pkg/tsdb/prometheus/testdata/exemplar.result.streaming-wide.golden.jsonc b/pkg/tsdb/prometheus/testdata/exemplar.result.streaming-wide.golden.jsonc index b1e6776bd6e..cc2da59edab 100644 --- a/pkg/tsdb/prometheus/testdata/exemplar.result.streaming-wide.golden.jsonc +++ b/pkg/tsdb/prometheus/testdata/exemplar.result.streaming-wide.golden.jsonc @@ -26,16 +26,6 @@ // +-----------------------------------+-----------------+--------------------------------------------+----------------+-------------------+-------------------+----------------+----------------+--------------------+----------------+------------------+-----------------+-------------------+----------------------------------+ // // -// -// Frame[1] { -// "executedQueryString": "Expr: histogram_quantile(0.99, sum(rate(traces_spanmetrics_duration_seconds_bucket[15s])) by (le))\nStep: 15s" -// } -// Name: -// Dimensions: 0 Fields by 0 Rows -// + -// + -// -// // 🌟 This was machine generated. Do not edit. 🌟 { "status": 200, @@ -1050,17 +1040,6 @@ ] ] } - }, - { - "schema": { - "meta": { - "executedQueryString": "Expr: histogram_quantile(0.99, sum(rate(traces_spanmetrics_duration_seconds_bucket[15s])) by (le))\nStep: 15s" - }, - "fields": [] - }, - "data": { - "values": [] - } } ] } \ No newline at end of file